ParticleType Structure |
Namespace: GeonBit.ECS.Components.Particles
public struct ParticleType
The ParticleType type exposes the following members.
Name | Description | |
---|---|---|
ParticleType |
Create the particle type.
|
Name | Description | |
---|---|---|
Frequency |
How often to spawn particles (value range should be 0f - 1f).
In every spawn event if the Frequency >= Random(0f, 1f), new particles will emit.
| |
FrequencyChange |
How much to change frequency over time.
For example, if value is -0.5, will decrease Frequency by 0.5f over the span time of 1 second.
| |
MaxParticlesPerSpawn |
Max particles amount to create every spawn.
| |
MinParticlesPerSpawn |
Min particles amount to create every spawn.
| |
ParticlePrototype |
The particle GameObject (we emit clone of these objects).
|
Name | Description | |
---|---|---|
Clone |
Clone particle type.
| |
Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
GetFrequency |
Get frequency with FrequencyChange applied.
| |
GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |