Can't access variables from Monobehaviour script on blackboard

Hello, I’m new to behaviour graphs and unity in general. I want to access variables/functions inside a script and use them in a custom node in behaviour graph. I’ve saved the script to the blackboard of my graph as a monobehaviour and dragged the script into it, in the inspector. However, when i inspect the script and try and use a variable in the script e.g. BattleHandler.State it doesn’t work. Am i doing this incorrectly?
Thanks.

Hi @ollyapp ,

We don’t expose the properties/fields of the objects, that would escalate quickly! But in your node you now have access to that MonoBehaviour and can access it, its methods and fields.

I hope this helps :slight_smile:

Thanks for your reply. I figured it out. Instead of putting BattleHandler.State i needed to write BattleHandler.Value.State