Programmic enable/disable doing exact opposite to children

Hello, has anyone else ran into what seems to be a bug where you enable/disable an entity and the children do the exact opposite. I tried manually enable/disabling the children, but that doesn’t seem to have any effect. All I’m doing is pc.app.root.findByName('Placeholder').enabled = true; on the parent.

The reason I specifically said “programmic” in the title is because it works fine doing the same thing from the editor.

Actually, I think I figured it out. The children were on different layers, for whatever reason having children on a different layer caused the enable/disable to do the inverse on the children.

1 Like