[SOLVED] Change child entity name of a dymanic entity

Making a multiplayer game and i need to make it so that i can get the children of a object that was cloned and change them.

Just change the name property https://developer.playcanvas.com/api/pc.Entity.html#name

whateverEntity.name = 'whatever name'

You can get the array of children here: https://developer.playcanvas.com/api/pc.Entity.html#children

1 Like

thank you that works