Jump to content

Entity:Hide() sets Hidden() == true on Child Elements


martyj
 Share

Recommended Posts

In the Leadwerks Editor, when I hide a parent object, it sets "Hidden" to true on all the child objects.

In code, when I set the parent object to Show() all the children do not show.

I would expect the Parent object to be Hidden() == true, but the child elements to have Hidden() == false.

That way when I call Show(), I don't have to recurse through the children.

Link to comment
Share on other sites

It is porobBly applying the setting to all selected objects.  One of the weirdest design decisions I ran into was that with some setting like mass you obviously only want it to apply to the top selected object in the hierarchy, as opposed to color which you obviously want applied to everything that's selected.  Visibility is another setting we should probably treat that way.

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

  • 1 year later...
  • Admin locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...