Gets a Component attached to a GameObject and stores it in an Object variable.
NOTE: Set the Object variable's Object Type to get a component of that type. E.g., set Object Type to UnityEngine.AudioListener to get the AudioListener component on the camera.
Game Object
The Game Object that owns the component.
Store Component
Store the component in an Object variable.
Every Frame
Repeat every frame.
Example
Get a Light Component and then use Get Property to get the color of the light.
First make variables to store the Light Component and its color:
Then use Get Component with Get Property to get the color:
NOTE: You could just as easily use Set Property to set the light's color.
Workflow Hints
- Set the Object Type in the Variables Manager.
- Use Get Component with Get/Set Property.