A Packaged build that has had an Editor Only Component added to one of its Blueprints logs a false positive warning in USimpleConstructionScript::FixupRootNodeParentReferences():
USimpleConstructionScript::FixupRootNodeParentReferences() - Couldn't find native parent component 'MyEditorOnlyComponent' for 'MyEditorOnly' in BlueprintGeneratedClass 'BP_MyBrokenActor_C' (it may have been removed)
It looks like the Component that was added in the Editor is not removed before packaging and ends up "parentless". It's expected that the engine handles this edge case prior to throwing a warning.
#if WITH_EDITORONLY_DATA UMyEditorOnlyComponent* MyEditorOnlyComponent; #endif //WITH_EDITORONLY_DATA
#if WITH_EDITORONLY_DATA MyEditorOnlyComponent = CreateDefaultSubobject<UMyEditorOnlyComponent>(TEXT("MyEditorOnlyComponent")); MyEditorOnlyComponent->SetupAttachment(GetRootComponent()); #endif //WITH_EDITORONLY_DATA
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-227735 in the post.
0 |
Component | UE - Gameplay - Components |
---|---|
Affects Versions | 5.4.4 |
Target Fix | 5.6 |
Created | Oct 15, 2024 |
---|---|
Updated | Oct 17, 2024 |