This version of Unity is unsupported.
Experimental: this API is experimental and might be changed or removed in the future.

VisualEffect.SetMesh

Declaration

public void SetMesh(int nameID, Mesh m);

Declaration

public void SetMesh(string name, Mesh m);

Parameters

nameID The name ID of the property retrieved by Shader.PropertyToID.
name The name of the property.
m The new mesh value.

Description

Sets a named mesh value.

Automatically changes overridden state for this property to true.