Menu
Lumberyard
User Guide (Version 1.13)

Get Material

Returns an entity's current material.

Contents


                getmaterialnode, getmaterial

Note

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.

Inputs

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 Referencing Entities for Nodes.

Outputs

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

On this page: