IN THIS ARTICLE
Get Material
Get Material
Returns an entity’s current material.
Contents
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 Setting Entity Targets. |
Outputs
Pin | Type | Description |
---|---|---|
Out | Event | Sends when the node is finished. |
Material | Material | The entity’s current material. |