I’m trying to make plugin for my game.
I’ve created toolbar button which shows property window (created by FPropertyEditorModule). That property window is connected to my custom object for level editing as follow.
UCLASS(config=Game)
class UTileBEditorObject : public UObject {
GENERATED_BODY()
public:
UPROPERTY(EditAnywhere, Category = "TestCategory")
float testFloat;
UPROPERTY(EditAnywhere, Transient, Category = "TestCategory")
class ATileController* targetTileController;
//for test
UPROPERTY(EditAnywhere, Category = "TestCategory")
class AActor* targetActor;
};
The window shows properties correctly as screenshot but I can’t choose any actors or tilecontrollers in my level with warning:
LogProperty:Warning: Illegal TEXT reference to a private object in external package (BP_TileController_C /Game/Maps/TestMap.TestMap:PersistentLevel.BP_TileController_4) from referencer (TileBlockEditorObject /Engine/Transient.TileBlockEditorObject_0). Import failed...
I found something in PropertyBaseObject.cpp:388~396, target, actors in the level, should be RF_Public or Outermost() is the same each other to avoid this warning and get correct reference of actors in my plugin.
How can I fix this problem?