Get Material - Lumberyard User Guide

Get Material

Returns an entity's current material.


                getmaterialnode, getmaterial

If you use the Set Material node and specify an invalid material and then call the Get Material node, Get Material returns the entity's default material instead of Invalid.


Pin Type Description
In Event Triggers the node.
Source EntityID

References a specific entity from which events are generated. By default, it references Self, the entity to which the Script Canvas component attaches the current script.

You can also select another entity. For more information, see Setting Entity Targets.


Pin Type Description
Out Event Sends when the node is finished.
Material Material The entity’s current material.