Entity Attributes not cloned
Opened this issue · 0 comments
marklundin commented
Description
Entity Attributes references are not cloned.
Steps to Reproduce
- Fork this project https://playcanvas.com/editor/scene/2004711
- Click run launcher and open dev tools console. Note the logged GUID number
- In the editor hierarchy, right click on the entity 'DUPLICATE_ME' and click 'duplicate'
- In the launcher console note the new guid refers to the same entity
- Now refresh the launcher. Note the console now logs out different GUIDS
What should happen
When an entity is cloned at runtime, any entity reference should be updated to point at the new hierarchy