Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetMesh

Sets the value of a named Mesh property.
Read time 1 minuteLast updated 5 days ago

Definition

SetMesh(int, Mesh)

Sets the value of a named Mesh property.
public void SetMesh(int nameID, Mesh m)

Parameters

nameID

The ID of the property. This is the same ID that Shader.PropertyToID returns.

The new Mesh value.

Remarks

Automatically changes overridden state for this property to true.

SetMesh(string, Mesh)

Sets the value of a named Mesh property.
public void SetMesh(string name, Mesh m)

Parameters

name

The name of the property.

The new Mesh value.

Remarks

Automatically changes overridden state for this property to true.