How to update the Inspector tree of the Editor

Long story short: here is my current issue https://youtu.be/AXmGmAgbvhE

Looks like I need to call this:

EBUS_EVENT(AZ::AzToolsFramework::ToolsApplicationEvents::Bus, InvalidatePropertyDisplay, AZ::AzToolsFramework::Refresh_EntireTree_NewContent);

However after configure my wscript file of my project I get this error:

1>[749/920] crcfix (win_x64_vs2017|debug): SamplesProject\Gem\Code\Source\Core\GameplaySampleGameRules.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReloadInit.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadInit.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReloadLyHook.h SamplesProject\Gem\Code\Source\SamplesProjectSystemComponent.cpp SamplesProject\Gem\Code\Source\MetastreamTest\MetastreamTest.h SamplesProject\Gem\Code\CppHotReload\include\CppHotReload\Serialization.h SamplesProject\Gem\Code\Source\Core\EditorGame.cpp SamplesProject\Gem\Code\Source\Game\WayPointManagerBus.h SamplesProject\Gem\Code\Source\Game\InAppPurchasesScriptCanvas.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReloadEvents.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReloadCustomContructors.h SamplesProject\Gem\Code\Source\Game\WayPointManagerComponent.cpp SamplesProject\Gem\Code\Source\Game\FlyCameraInputComponent.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadSubscriber.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReloadEvents.h SamplesProject\Gem\Code\StdAfx.h SamplesProject\Gem\Code\CppHotReload\include\CppHotReload\HotReloadAPI.h SamplesProject\Gem\Code\Source\Game\MyComponent.cpp SamplesProject\Gem\Code\Source\Core\GameplaySampleGameRules.h SamplesProject\Gem\Code\Source\SamplesProjectModule.cpp SamplesProject\Gem\Code\Source\Core\GameplaySampleGame.cpp SamplesProject\Gem\Code\Source\Game\FlyCameraInputBus.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadModule.cpp SamplesProject\Gem\Code\Source\Game\FlyCameraInputComponent.cpp SamplesProject\Gem\Code\Source\Game\FlyCameraInputFlowNodes.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReload.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReload.h SamplesProject\Gem\Code\Source\Game\Actor.h SamplesProject\Gem\Code\Source\Core\EditorGame.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadSubscriber.h SamplesProject\Gem\Code\Source\SamplesProjectSystemComponent.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadModule.h SamplesProject\Gem\Code\Source\Core\GameplaySampleGame.h SamplesProject\Gem\Code\Source\Game\WayPointManagerComponent.h SamplesProject\Gem\Code\Include\SamplesProject\SamplesProjectBus.h SamplesProject\Gem\Code\Source\MetastreamTest\MetastreamTest.cpp SamplesProject\Gem\Code\Source\Game\MyComponent.h SamplesProject\Gem\Code\Source\System\GameStartup.cpp SamplesProject\Gem\Code\Source\Game\Actor.cpp e:\Amazon\Lumberyard_1.21\dev\BinTemp\uber_files\SamplesProject\SamplesProject_autogame_0.cpp SamplesProject\Gem\Code\CppHotReload\CppHotReloadConfig.h SamplesProject\Gem\Code\Source\System\GameStartup.h SamplesProject\Gem\Code\CppHotReload\IncludeDirectories.txt SamplesProject\Gem\Code\CppHotReload\CppHotReload.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadConfig.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadCustomContructors.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadEvents.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadInit.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadLyHook.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadModule.h SamplesProject\Gem\Code\CppHotReload\CppHotReloadSubscriber.h SamplesProject\Gem\Code\CppHotReload\include\CppHotReload\HotReloadAPI.h SamplesProject\Gem\Code\CppHotReload\include\CppHotReload\Serialization.h SamplesProject\Gem\Code\Include\SamplesProject\SamplesProjectBus.h SamplesProject\Gem\Code\Source\Core\EditorGame.h SamplesProject\Gem\Code\Source\Core\GameplaySampleGame.h SamplesProject\Gem\Code\Source\Core\GameplaySampleGameRules.h SamplesProject\Gem\Code\Source\Game\Actor.h SamplesProject\Gem\Code\Source\Game\FlyCameraInputBus.h SamplesProject\Gem\Code\Source\Game\FlyCameraInputComponent.h SamplesProject\Gem\Code\Source\Game\MyComponent.h SamplesProject\Gem\Code\Source\Game\WayPointManagerBus.h SamplesProject\Gem\Code\Source\Game\WayPointManagerComponent.h SamplesProject\Gem\Code\Source\MetastreamTest\MetastreamTest.h SamplesProject\Gem\Code\Source\SamplesProjectSystemComponent.h SamplesProject\Gem\Code\Source\System\GameStartup.h SamplesProject\Gem\Code\StdAfx.h
1>Build failed
1>Traceback (most recent call last):
1> File “e:\Amazon\Lumberyard_1.21\dev\Tools\build\waf-1.7.13\waflib\Runner.py”, line 365, in start
1> assert(st != Task.ASK_LATER)
1>AssertionError
1>

My modification to the wscript file based on others in Ly:

    features            = ['qt5'],
    use                 = ['AzToolsFramework',
                           'AzFramework',
                           'AzQtComponents',
                           'SQLITE',
                           'AzGameFramework'],
    uselib              = ['QT5CORE',
                           'QT5GUI',
                           'QT5WIDGETS'],

No clue how to solve it nor other way to call the Editor for automatic refresh.
Any clue? Thanks!

Could you attach the entire build log for this issue?

Thanks!

Thanks for the support @MrOleksandr, as always you guys are very responsive. My issue it’s solved as I included references to the AzFrameworkTools and Editor in bld.DefineGem instead of Editor = dict(…

Thanks for all.

This is my currently working wscript:

def build(bld):
bld.DefineGem(
#
# General
#
disable_pch = True,
file_list = [‘cpphotreload.waf_files’],
pch = ‘Source/StdAfx.cpp’,
defines = [‘CPP_HOT_RELOAD’],
use = [‘AzCore’],
platforms = [‘win’],
configurations = [‘debug’, ‘profile’],
#
# Editor files
#
Editor = dict(
file_list = [‘cpphotreload_editor.waf_files’],
pch = ‘Source/Editor/StdAfx.cpp’,
features = [‘qt5’],
uselib = [‘QT5CORE’,‘QT5GUI’,‘QT5WIDGETS’, ‘QT5NETWORK’], # this lib depends on EditorLib, which depends on NewsShared, which depends on Qt5Network
defines = [‘CPP_HOT_RELOAD_EDITOR’,],
use = [‘AzToolsFramework’,‘EditorUI_QT’,‘EditorCommon’,‘EditorCore’,‘EditorLib’],
platforms = [‘win’],
configurations = [‘debug’, ‘profile’],
)
)

1 Like