#Grey out transform options of children

1 messages · Page 1 of 1 (latest)

sudden basalt
#

I have noticed some Container derived nodes will prevent it's children from having their transform modified (since the container takes care of that) is there a way to induce that on a node with a custom layout script without extending nodes that already have it? (Since I would be fighting against their implementation then)

This seems nessesary for clarity since overwriting "size" with _Get and _Set seems to have no effect if the size is modified in the scene view instead of the inspector

#

.
I would also like to know if the same "layout is controlled by something else" effect can be archived on a any node in general like a "root" for instance

sudden basalt
#

At this point I primarily want to know what the proper way to prevent modifying the size of a control node without preventing the node from being moved around in general (since the size of the node is meant to be depended on it's children)

zealous terrace
#

Doing that on the children of a node requires you to have custom scripts on each of those nodes, since you need access to that magic method. Controls themselves check if a Container is a parent then assign that flag accordingly.

sudden basalt
# zealous terrace To make a property read only, you can set the `PROPERTY_USAGE_READ_ONLY` flag in...

Thanks. Interesting I will use _validate_property to prevent editing the transform properties.
however the editor resizing in the scene view seem to ignore both _validate_property and _get and _set entirely. I assume the editor feature for that is implemented in canvas_item_editor_plugin.
Is the only way I am suppose to prevent that is assigning the node as "locked". So far it seems that and container nodes is the only thing it checks for that