MapEditor
MapEditor copied to clipboard
Entity data confusion
parentRepresentative: DataContainer field in EntityCreationParams
Caused by entities that are created being spawned from the same parentrepresentative, making them share data which shouldn't be unique.
To fix: Implement parentRepresentative field in EntityCreationParams, should reference a unique referenceobjectdata.
https://powback.com/u/1dc5029c4a2ddfe11e093887b4ab7dc3.mp4
Needs to be added here: https://github.com/BF3RM/MapEditor/blob/640b1f2d89f3b97426066094bcfb3196b9a98afa/ext/Shared/Modules/GameObjectManager.lua#L65
Note: when creating a custom ReferenceObjectData you need to define the .blueprint as well in there and then you also need to store the ReferenceObjectData so it doesn't get garbage collected.