hi guys
how can i accses to last child entity
Hello @l0rdyolo,
Since the children of an entity are in a form of an array, you can access the last item of an array in Javascript like this:
var lastChild = this.entity.children[this.entity.children.length - 1];
4 Likes
Thank you!
So i can use?
lastChild.setLocalposition()
Yes, you can. Be aware the letter P should be a capital letter too.
2 Likes