Sinespace Client
2023.2.17543
Client-side scripting for Sinespace
|
Public Member Functions | |
void | Play (bool withChildren) |
Starts the Particle System. More... | |
void | Stop (bool withChildren) |
Stops playing the Particle System using the supplied stop behavior. More... | |
void | Pause (bool withChildren) |
Pauses the system so no new particles are emitted and the existing particles are not updated. More... | |
void | Clear (bool withChildren) |
Remove all particles in the Particle System. More... | |
bool | IsAlive (bool withChildren) |
Does the Particle System contain any live particles, or will it produce more? More... | |
void | Clear () |
void | Emit (int count) |
Emit count particles immediately. More... | |
void | Stop () |
void | Pause () |
void | Play () |
void | Simulate (float time) |
Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it. More... | |
void | SetTriggerParticles (SParticleSystemTriggerEventType type, SParticle[] sp) |
SParticle[] | GetTriggerParticles (SParticleSystemTriggerEventType type) |
Properties | |
float | StartDelay [get, set] |
Start delay in seconds. More... | |
bool | IsPlaying [get] |
Determines whether the Particle System is playing. More... | |
bool | IsEmitting [get] |
bool | IsStopped [get] |
Determines whether the Particle System is in the stopped state. More... | |
bool | IsPaused [get] |
Determines whether the Particle System is paused. More... | |
bool | Loop [get, set] |
Specifies whether the Particle System is looping. More... | |
bool | PlayOnAwake [get, set] |
If set to true, the Particle System automatically begins to play on startup. More... | |
float | Time [get, set] |
Playback position in seconds. More... | |
float | Duration [get] |
The duration of the Particle System in seconds. More... | |
float | PlaybackSpeed [get, set] |
Override the default playback speed of the Particle System. More... | |
int | ParticleCount [get] |
The current number of particles (Read Only). More... | |
bool | EnableEmission [get, set] |
Specifies whether emission is enabled or disabled. More... | |
float | EmissionRate [get, set] |
float | EmissionRateOverTime [get, set] |
The rate at which the emitter spawns’new particles over time. More... | |
float | EmissionRateOverDistance [get, set] |
The rate at which the emitter spawns’new particles over distance. More... | |
float | StartSpeed [get, set] |
The initial speed of particles when the Particle System first spawns them. More... | |
float | StartSize [get, set] |
The initial size of particles when the Particle System first spawns them. More... | |
SColor | StartColor [get, set] |
The initial color of particles when the Particle System first spawns them. More... | |
SColor | StartColorMin [get, set] |
The lower bound of the initial color of particles when the Particle System first spawns them. Only applies when when particle start color mode is set to random color. More... | |
SColor | StartColorMax [get, set] |
The upper bound of the initial color of particles when the Particle System first spawns them. Only applies when when particle start color mode is set to random color. More... | |
float | StartRotation [get, set] |
The initial rotation of particles when the Particle System first spawns them. More... | |
SVector | StartRotation3D [get, set] |
The initial rotation of particles when the Particle System first spawns them. Using 3D vector to rotate. More... | |
float | StartLifetime [get, set] |
The total lifetime in seconds that each new particle has. More... | |
float | GravityModifier [get, set] |
A scale that this Particle System applies to gravity, defined by Physics.gravity. More... | |
int | MaxParticles [get, set] |
The maximum number of particles to emit. More... | |
uint | RandomSeed [get, set] |
Override the random seed used for the Particle System emission. (Only take effect after UseAutoRandomSeed set to false) More... | |
bool | UseAutoRandomSeed [get, set] |
Controls whether the Particle System uses an automatically-generated random number to seed the random number generator. More... | |
Properties inherited from ScriptClassComponent< ParticleSystem > | |
SGameObject | GameObject [get] |
Return the GameObject which component added. More... | |
void SineSpace.Scripting.Components.SParticleSystem.Clear | ( | ) |
void SineSpace.Scripting.Components.SParticleSystem.Clear | ( | bool | withChildren | ) |
Remove all particles in the Particle System.
void SineSpace.Scripting.Components.SParticleSystem.Emit | ( | int | count | ) |
Emit count particles immediately.
SParticle [] SineSpace.Scripting.Components.SParticleSystem.GetTriggerParticles | ( | SParticleSystemTriggerEventType | type | ) |
bool SineSpace.Scripting.Components.SParticleSystem.IsAlive | ( | bool | withChildren | ) |
Does the Particle System contain any live particles, or will it produce more?
void SineSpace.Scripting.Components.SParticleSystem.Pause | ( | ) |
void SineSpace.Scripting.Components.SParticleSystem.Pause | ( | bool | withChildren | ) |
Pauses the system so no new particles are emitted and the existing particles are not updated.
void SineSpace.Scripting.Components.SParticleSystem.Play | ( | ) |
void SineSpace.Scripting.Components.SParticleSystem.Play | ( | bool | withChildren | ) |
Starts the Particle System.
void SineSpace.Scripting.Components.SParticleSystem.SetTriggerParticles | ( | SParticleSystemTriggerEventType | type, |
SParticle[] | sp | ||
) |
void SineSpace.Scripting.Components.SParticleSystem.Simulate | ( | float | time | ) |
Fast-forwards the Particle System by simulating particles over the given period of time, then pauses it.
void SineSpace.Scripting.Components.SParticleSystem.Stop | ( | ) |
void SineSpace.Scripting.Components.SParticleSystem.Stop | ( | bool | withChildren | ) |
Stops playing the Particle System using the supplied stop behavior.
|
get |
The duration of the Particle System in seconds.
|
getset |
|
getset |
The rate at which the emitter spawns’new particles over distance.
|
getset |
The rate at which the emitter spawns’new particles over time.
|
getset |
Specifies whether emission is enabled or disabled.
|
getset |
A scale that this Particle System applies to gravity, defined by Physics.gravity.
|
get |
Determines whether the Particle System is emitting particles. A Particle System may stop emitting when its emission module has finished, it has been paused or if the system has been stopped using Stop with the StopEmitting flag. Resume emitting by calling Play.
|
get |
Determines whether the Particle System is paused.
|
get |
Determines whether the Particle System is playing.
|
get |
Determines whether the Particle System is in the stopped state.
|
getset |
Specifies whether the Particle System is looping.
|
getset |
The maximum number of particles to emit.
|
get |
The current number of particles (Read Only).
|
getset |
Override the default playback speed of the Particle System.
|
getset |
If set to true, the Particle System automatically begins to play on startup.
|
getset |
Override the random seed used for the Particle System emission. (Only take effect after UseAutoRandomSeed set to false)
|
getset |
The initial color of particles when the Particle System first spawns them.
|
getset |
The upper bound of the initial color of particles when the Particle System first spawns them. Only applies when when particle start color mode is set to random color.
|
getset |
The lower bound of the initial color of particles when the Particle System first spawns them. Only applies when when particle start color mode is set to random color.
|
getset |
Start delay in seconds.
|
getset |
The total lifetime in seconds that each new particle has.
|
getset |
The initial rotation of particles when the Particle System first spawns them.
|
getset |
The initial rotation of particles when the Particle System first spawns them. Using 3D vector to rotate.
|
getset |
The initial size of particles when the Particle System first spawns them.
|
getset |
The initial speed of particles when the Particle System first spawns them.
|
getset |
Playback position in seconds.
|
getset |
Controls whether the Particle System uses an automatically-generated random number to seed the random number generator.