Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetMesh

Gets the value of a named Mesh property.
Read time 1 minuteLast updated 6 days ago

Definition

GetMesh(int)

Gets the value of a named Mesh property.
public Mesh GetMesh(int nameID)

Parameters

nameID

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

Returns

Type

Description

MeshThe value for the Mesh you specify. Returns
null
if VisualEffect.HasMesh returns
false
.

GetMesh(string)

Gets the value of a named Mesh property.
public Mesh GetMesh(string name)

Parameters

name

The name of the property.

Returns

Type

Description

MeshThe value for the Mesh you specify. Returns
null
if VisualEffect.HasMesh returns
false
.