Expanding Subtree from Code and in a Prefab

jpapon

New member
Hello,

Is there any way to expand a tree (ie the green plus/minus in the GUI) from within a Task?

Prefabs by default are read-only. I see you can enable editing in preferences - are there any dangers to doing this?
Also, this read-only block makes it so you can't expand/hide subtrees in prefab nodes in the GUI. Is there any way to allow seeing the tree without enabling full prefab editing?

Thanks!
 
Is there any way to expand a tree (ie the green plus/minus in the GUI) from within a Task?
Yes, within the NodeData of that task there is an collapsed boolean.

Prefabs by default are read-only. I see you can enable editing in preferences - are there any dangers to doing this?
Sometimes with binary serialization Unity will corrupt the binary data when merging prefab instances. If you use JSON you should be ok.

Also, this read-only block makes it so you can't expand/hide subtrees in prefab nodes in the GUI. Is there any way to allow seeing the tree without enabling full prefab editing?
When you expand the node you also need to reserialize the tree so unfortunately there isn't.
 
Top