Hi,
i recently added a new ActorComponent to a placable actor that already has instances placed inside the level via a archtype.
The component is declared with "var() editconst" and added using the DefaultProp block.
I can see and edit the component properties inside the editor, but if i change a value to a none default value and save/reload the map, the editor complains that the object/archtype don't have such a component.
Is there a way to "reinitialize" add the missing component to the already placed actors? Do i have to "patch" such changes somehow dynamically inside PostBeginPlay() or is there some kind of "Update" mechanic i can use to have the missing component also created for the already placed versions?
Now inside PostBeginPlay() i get a "Component_1" reference for "MyComponentRef", but inside the actor's components array i only see a "Component_0"?
So the "_1" instance has the editor set values, while the version inside the actor is uninitialized?
Why is the instanced component version inside the actor not the same version i get the MyComponentRef set?
Thx Andy
i recently added a new ActorComponent to a placable actor that already has instances placed inside the level via a archtype.
The component is declared with "var() editconst" and added using the DefaultProp block.
I can see and edit the component properties inside the editor, but if i change a value to a none default value and save/reload the map, the editor complains that the object/archtype don't have such a component.
Is there a way to "reinitialize" add the missing component to the already placed actors? Do i have to "patch" such changes somehow dynamically inside PostBeginPlay() or is there some kind of "Update" mechanic i can use to have the missing component also created for the already placed versions?
Code:
Begin Object Class=MyComponentClass Name=MyComponent bEnabled=true End Object Components.Add(MyComponent) MyComponentRef=MyComponent
So the "_1" instance has the editor set values, while the version inside the actor is uninitialized?
Why is the instanced component version inside the actor not the same version i get the MyComponentRef set?
Thx Andy
Comment