Material

Get Material

Get a reference to a material from a Renderer.

Inputs:

Name
Type
Description

Renderer In

Renderer

Reference to a Renderer.

Shared Material

Boolean [editable]

If True, outputs that shared material of the Renderer. If you modify a shared material, you will change the appearance of all objects that use that material.

Material Index

Integer [editable]

The index of the material to get a reference to.

Outputs:

Name
Type
Description

Material Out

Material

Reference to a material.

Set Material

Sets the material of a Renderer.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Renderer In

Renderer

Reference to a Renderer.

Material

Material [editable]

The material to apply to the Renderer.

Shared Material

Boolean [editable]

If true, the node updates the shared material.

Material Index

Integer [editable]

The index of the material to replace.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Set Material Color

Sets the color of a material. For more information, refer to Material.SetColor in the Unity documentation.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Material In

Material

The material to set the color of.

Color Property

String [editable]

The name of the color to change. In the pre-built shaders, _Color is the name of the main color of the material.

Color In

Color [editable]

The color to set.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Set Material Float

Sets a named float value. For more information, refer to the Material.SetFloat page in the Unity documentation.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Material In

Material

Reference to the material to modify.

Float Property

String

The name of the float property to change.

Float In

Float

The float value to set for the property.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Set Material Int

Sets a named integer value. For more information, refer to the Material.SetInteger page in the Unity documentation.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Material In

Material

Reference to the material to modify.

In Property Name

String [editable]

The name of the integer property to change.

Int In

Integer [editable]

The integer value to set for the property.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Set Material Texture

Sets a named texture. For more information, refer to the Material.SetTexture page in the Unity documentation.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Material In

Material

Reference to the material to modify.

Texture Property

String [editable]

The name of the texture to replace. In the pre-built shaders, _MainTex is the name of the main diffuse texture of the material.

Texture In

Texture

The texture to apply to the material.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Set Material Vector

Sets a named vector value. For more information, refer to the Material.SetVector page in the Unity documentation.

Inputs:

Name
Type
Description

Enter

Flow

Flow to activate the node.

Material In

Material

Reference to the material to modify.

Vector Property

String [editable]

The name of the vector to set.

Vector In

Vector4 [editable]

The four component vector to apply to set for the property.

Outputs:

Name
Type
Description

Exit

Flow

Continue the activating flow.

Last updated