ドキュメント

Unity Engine

Unity Engine

GetMeshWeightings(float[])

Gets the array of Mesh weightings to use when randomly selecting particle meshes.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public int GetMeshWeightings(float[] weightings)

Parameters

weightings

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

Returns

Type

Description

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

Remarks