Wiki

Case Status
Log In

Wiki

 
Home ยป Action Reference»UnityObject Actions»Get Property
Index
Navigation
Community Wiki

Get Property

Gets the value of any public property or field on the targeted Unity Object and stores it in a variable.

Target Object
Any object derived from UnityEngine.Object. For example, you can drag a Component from the Unity Inspector into this field. HINT: Use Lock to lock the current FSM selection if you need to drag a component from another GameObject.
Property
Use the property selection menu to select the property to get. Note: You can drill into the property, e.g., transform.localPosition.x.
Store Result
Store the result in a variable.
Every Frame
Repeat every frame. Useful if the property is changing over time.

 

Workflow Hints

  • Drag a component from the Unity Inspector to the State Inspector to quickly access properties.

  • Use Lock in the Selection Toolbar to select components on other GameObjects.
  • Use Get Component to get a component and then Get Property to get a property in that component.
  • NEW Drill into properties in the property menu:

E.g., sub menus let you select eulerAngles.normalized.x:

 

NOTES

  • Sometimes new Unity versions change property names. We do not currently detect this so you will need to update actions manually if property paths change.
  • The online Unity API Versioner is a useful tool to explore method and property names across Unity versions.
Tags:

Last modified on 1/28/2019 6:00 PM by User.

  • RSS Feed