Class ParticleSorterDepth
Sorts the particles by ascending order of their Depth (position on the camera's Z axis)
public class ParticleSorterDepth : ParticleSorterCustom<Vector3>, IParticleSorter
- Inheritance
-
objectParticleSorterDepth
- Implements
- Inherited Members
Constructors
ParticleSorterDepth(ParticlePool)
public ParticleSorterDepth(ParticlePool pool)
Parameters
poolParticlePool
Methods
FreeSortedList(ref ParticleList)
In case an array was used it must be freed back to the pool
public void FreeSortedList(ref ParticleList sortedList)
Parameters
sortedListParticleListReference to the ParticleList to be freed
GetSortedList(Vector3)
public ParticleList GetSortedList(Vector3 depth)
Parameters
depthVector3