Case Status
Log In


Home ยป Action Reference»UnityObject Actions»Get Component
Community Wiki

Get Component

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.



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


Last modified on 1/7/2016 2:02 AM by User.

  • RSS Feed