If you want to manually access a variable value (dynamic or not), from within your custom task, you can do so by calling: blackboard.GetValue<T>(string name). So, for example blackboard.GetValue<Lamp>("myLamp")
You can also use a public BBParameter<Lamp> lamp variable in your task which will expose a parameter of type Lamp in the inspector, which you can set to also be dynamic and type in the name of the variable that should get it’s value from. In this case, if a dynamic variable has not yet been generated by your GetClosestOfType action, the ‘lamp.value’ will simply return null for this example.
Please let me know if this is what you ment, or maybe I completely misunderstood the question which I think is quite possible in this case 🙂
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.