Lumberyard
Legacy Reference

Material Nodes

Flow Graph is deprecated and will be removed in a future version of Lumberyard. Learn about Script Canvas, Lumberyard's new visual scripting environment.

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn about the latest features, see the Amazon Lumberyard User Guide.

You can use the following flow graph nodes to define material settings.

EntityMaterialChange node

Used to apply the specified material to an entity.

Inputs

Port Type Description
Activate Any Activates the node
MaterialName String Name of material to apply
Reset Any Reset to the original material
SerializeChanges Boolean Serialize the change

Outputs

Port Type Description
Name String Outputs the name of the material

EntityMaterialParams node

Used to get the entity's material parameters.

Inputs

Port Type Description
Activate Any Activates the node
Slot Integer Material slot
SubMtlId Integer Submaterial ID
ParamFloat String Float parameter to be set
ValueFloat Float Sets float parameter value
ParamColor String Color parameter to be set
ValueColor Vec3 Color value to be set

Outputs

Port Type Description
FloatValue Float Current float value
ColorValue Vec3 Current color value

MaterialClone node

Used to clone an entity's material or reset it back to the original.

Inputs

Port Type Description
Activate Any Activates the node
Reset Any Resets to the original material
Slot Integer Material slot

Outputs

Port Type Description
onCloned Any Activated when material is cloned
OnReset Any Activated when material is reset

MaterialParams node

Used to get the specified material's parameters.

Inputs

Port Type Description
Activate Any Activates the node
MaterialName String Material name
SubMtlId Integer Submaterial name
ParamFloat String Float parameter to be set
ValueFloat Float Value of the float parameter
ParamColor String Color parameter to be set
ValueColor Vec3 Value of the color parameter
SerializeChanges Boolean Serialize the change

Outputs

Port Type Description
FloatValue Float Current float value
ColorValue Vec3 Current color value

SetObjectMaterial node

Used to set an object's (render node) material to the specified position.

Inputs

Port Type Description
Material String Set object material
ObjectType Integer Object type
Position Vec3 Position to set material at
Activate Any Activates the node