Hi everyone,
I am a little stumped. I have a custom Entity component (monobehaviour) and am using GetComponent in my FSM to store that component in a variable. That part is working fine. However, I'm then trying to access a public bool on that component called isAlive from that stored object.
When I add the GetProperty action to my state, it allows me to select that variable for the object, and it populates the list of properties correctly, but if I select any of the Entity class properties, the store variable line disappears from the action inspector. However, if I go down to the inherited subsection, and chose one of the inherited properties (from monobehaviour) suddenly I can store them again.
Am I misunderstanding how GetProperty is supposed to work? I could have sworn you could use it to store standard, public data-types from custom components, but maybe I'm crazy. Thanks for any help you can give.
-Sean
UPDATE:
This only happens when I'm accessing my Entity class as an FSMObject variable. If I just drag an entity component onto the action, it works fine. If I try to use the stored object, the Type updates correctly (and says "Entity") but I lose the store ability.