playcanvas/editor

Entity Attributes not cloned

Opened this issue · 0 comments

Description

Entity Attributes references are not cloned.

Steps to Reproduce

  1. Fork this project https://playcanvas.com/editor/scene/2004711
  2. Click run launcher and open dev tools console. Note the logged GUID number
  3. In the editor hierarchy, right click on the entity 'DUPLICATE_ME' and click 'duplicate'
  4. In the launcher console note the new guid refers to the same entity
  5. 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