the same issue in UE 4.9.2, and has another warning
[2015.10.28-02.57.35:756][ 0]LogLinker:Warning: Unable to load package (…/…/…/…/UnrealEngine-4.9.2/…/Unreal Projects/MyUMGLab/Content/WMyUserWidget.uasset). Package contains EditorOnly data which is not supported by the current build or vice versa.
[2015.10.28-02.57.35:757][ 0]LogLinker:Warning: Unable to load package (…/…/…/…/UnrealEngine-4.9.2/…/Unreal Projects/MyUMGLab/Content/WMyUserWidget.uasset). Package contains EditorOnly data which is not supported by the current build or vice versa.
[2015.10.28-02.57.35:758][ 0]LogUObjectGlobals:Warning: Failed to find object ‘MyUserWidget /Game/WMyUserWidget.WMyUserWidget’
Add #Include to the tail of your “ProjectName”.h #include “Runtime/UMG/Public/UMG.h” #include “Runtime/UMG/Public/UMGStyle.h” #include “Runtime/UMG/Public/Slate/SObjectWidget.h” #include “Runtime/UMG/Public/IUMGModule.h” #include “Runtime/UMG/Public/Blueprint/UserWidget.h”
3.Add AddRange to your “ProjectName”.Build.h
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “UMG” });
PrivateDependencyModuleNames.AddRange(new string[] { “Slate”, “SlateCore” });
4:use LoadClass instead of LoadObject
UIS_UIBase :my UI C++ base class name , change to yours.