Forum

Anchor Text - Inherit Visibility

24 April 2018 17:02
Hi All,

I'm currently building a configurator, that simply toggles hidden elements whilst sending their prices to a quote engine.

Some parts of the object require interaction (click to open etc), so I've used anchor text and made it a child of the object in question (click to open toolbox door).

Is there a way I can get the anchor to inherit the hidden/shown status of it's parent object? So I don't have to write parallel code to perform two separate show/hide actions?

Thanks
26 April 2018 12:47
hide_object and show_object don't work for you? If empty object which correspond to an anchor is parented to your object, it will hide and show synchronously with this object when you calling hide/show_object for it.
Alexander (Blend4Web Team)
twitter
 
Please register or log in to leave a reply.