mostlyhuman
Member
I saw the docs on how to access them from non task objects but wasn't sure of what is probably a very simple way to access the variables through code within a task. Both regular and global. For instance I have a shared gameobject variable called Target, how do I check its value from a new task i'm creating? Is the syntax different for reading vs writing?
also is it possible to add a new variable of an existing shared type to the shared variable list from a task? For instance, I thought about creating an initialization task to put at the top of each tree that sets up common shared variables and their values.
Thanks in advance!
also is it possible to add a new variable of an existing shared type to the shared variable list from a task? For instance, I thought about creating an initialization task to put at the top of each tree that sets up common shared variables and their values.
Thanks in advance!
Last edited: