My plugin LoadingPhase is PostEngineInit.
In 4.24 everythins is ok
But in 4.26 volume can not apprear in level editor viewport.
The reason in above replies, and my plugin LoadingPhase can not set to Default.
So how to fix this?
- Create a actor factory, AssetData.AssetClass already set to actor, but can use class path do this.
bool UTestActorFactory::CanCreateActorFrom(const FAssetData& AssetData, FText& OutErrorMsg)
{
FString PathName = ATestVolume::StaticClass()->GetPathName();
if(AssetData.ObjectPath==FName(*PathName))
{
return true;
}
return false;
}
- Register your actor factory in plugin module
void TestEditorModule::StartupModule()
{
if (GEditor)
{
UTestActorFactory* ActorFactory = NewObject<UTestActorFactory>(GetTransientPackage(), UTestActorFactory::StaticClass());
GEditor->ActorFactories.Add(ActorFactory);
}
}
Create your derived volume, now it can show in editor.