Particle Playground - Script Reference
3.0.1
Framework for controlling particles in the Unity Engine.
|
Public Member Functions | |
PlaygroundFollower | GetActiveFollower (int index) |
Gets an active follower at index. This will only return active followers. More... | |
PlaygroundFollower | GetCachedFollower (int index) |
Gets a cached follower at index. This can return inactive followers waiting for their turn to be enabled. More... | |
int | GetActiveFollowersCount () |
Gets the amount of active followers. More... | |
int | GetCachedFollowersCount () |
Gets the amount of cached followers. More... | |
Public Attributes | |
PlaygroundParticlesC | particles |
Reference to the particle system. More... | |
GameObject | referenceObject |
Reference to an existing GameObject. This will be cloned to be used on every particle. More... | |
float | followerLifetime = 0 |
The lifetime of the followers. Set 0 to follow during each particle's individual lifetime. More... | |
int | cacheSize = 0 |
The size of the cache. Set 0 to automatically set the needed amount. More... | |
bool | sendEvents = false |
Determines if the Playground Followers should broadcast to any event listeners. More... | |
Events | |
OnPlaygroundFollower | followerEventBirth |
This event occurs when followers are born and sendEvents are set to true. More... | |
OnPlaygroundFollower | followerEventDeath |
This event occurs when follower dies and sendEvents are set to true. More... | |
PlaygroundFollower ParticlePlayground.PlaygroundFollow.GetActiveFollower | ( | int | index | ) |
Gets an active follower at index. This will only return active followers.
index | Index. |
int ParticlePlayground.PlaygroundFollow.GetActiveFollowersCount | ( | ) |
Gets the amount of active followers.
PlaygroundFollower ParticlePlayground.PlaygroundFollow.GetCachedFollower | ( | int | index | ) |
Gets a cached follower at index. This can return inactive followers waiting for their turn to be enabled.
index | Index. |
int ParticlePlayground.PlaygroundFollow.GetCachedFollowersCount | ( | ) |
Gets the amount of cached followers.
int ParticlePlayground.PlaygroundFollow.cacheSize = 0 |
The size of the cache. Set 0 to automatically set the needed amount.
float ParticlePlayground.PlaygroundFollow.followerLifetime = 0 |
The lifetime of the followers. Set 0 to follow during each particle's individual lifetime.
PlaygroundParticlesC ParticlePlayground.PlaygroundFollow.particles |
Reference to the particle system.
GameObject ParticlePlayground.PlaygroundFollow.referenceObject |
Reference to an existing GameObject. This will be cloned to be used on every particle.
bool ParticlePlayground.PlaygroundFollow.sendEvents = false |
Determines if the Playground Followers should broadcast to any event listeners.
OnPlaygroundFollower ParticlePlayground.PlaygroundFollow.followerEventBirth |
This event occurs when followers are born and sendEvents are set to true.
OnPlaygroundFollower ParticlePlayground.PlaygroundFollow.followerEventDeath |
This event occurs when follower dies and sendEvents are set to true.