[SOLVED] Confusion about names with underscore (in debugger)

I’m a bit confused.
One can access the children of an entity using the children array object inside it.
But when looking in the debugger, there is no such object. But there is a _children object.
Is the underscore used here to indicate it is a private member?
But how can it be accessed then?

Not sure what you mean here. Each graph node/entity has a children property:

https://developer.playcanvas.com/api/pc.Entity.html#children

But that one is grayed out. And the one with the underscore seems to contain the children.

It’s because it’s a getter/accessor. If you click on it, it will expand with the data

ah, I clicked on the word ‘children’. That doesn’t work. Clicking on ‘(…)’ indeed opens the content.
Thx for explaining. I understand now.