Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetMeshIndex(ParticleSystem)

Calculate the Mesh index of the particle, used for choosing which Mesh a particle is rendered with.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public int GetMeshIndex(ParticleSystem system)

Parameters

The Particle System from which this particle was emitted.

Returns

Type

Description

intThe index of the mesh used for rendering the particle.