Version:

IN THIS ARTICLE

Get Material

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


PinTypeDescription
InEventTriggers the node.
SourceEntityIDReferences 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.

Outputs


PinTypeDescription
OutEventSends when the node is finished.
MaterialMaterialThe entity’s current material.