文档

Unity Engine

Unity Engine

GetMeshes(Mesh[])

Gets the array of Meshes to use when selecting particle meshes.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public int GetMeshes(Mesh[] meshes)

Parameters

meshes

An array this function populates with the list of Meshes the ParticleSystemRenderer uses for particle Mesh selection. If the array is smaller than the number of Meshes, this function cannot populate it with every Mesh. If the array is larger than the number of Meshes, this function ignores indices greater than the number of Meshes. Use ParticleSystemRenderer.meshCount to get the number of Meshes the ParticleSystemRenderer has.

Returns

Type

Description

intThe number of Meshes this function wrote to the destination array.

Remarks

Additional Resources: ParticleSystemRenderer.renderMode.