ドキュメント

Unity Engine

Unity Engine

GetMesh

Gets the value of a named Mesh property.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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
.