Is it possible to hide the local variables from the Behavior Tree component?

Pietrofonix

New member
Hi guys, I would like to know if there's a way to hide the local variables from the Behavior Tree component. Maybe like the "HideInInspector" property that makes a public variable invisible in the inspector. I need this because not al the variables have to be editable in the inspector. If another one has to modify some properties of the NPC, I don't want that he is also able to see the variables that should not be touched.
Thank you for your time

Immagine 2024-11-29 124308.png
 
This isn't exactly the same but you can use dynamic variables within tasks and then those variables will not appear in the hierarchy.

 
Mmh, by using dynamic variable I should modify a lot of things I have already done. It's a pity that there isn't a simple feature like hide/show variables in the component, even via script. Is there really no way to see this in a future update? It would be really useful for everyone
 
Dynamic variables are the only way to achieve this. I'm not sure how a HideInInspector type of attribute would work on variables. The variables are just a list, so you'd have to add HideInInspector on the type. But you don't want all of the type to be hidden so that makes HideInInspector not viable.
 
Back
Top