Class RockParticles
Manages rock particle effects.
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class RockParticles : MonoBehaviour
Properties
| Edit this page View SourceParticles
Gets the ParticleSystem component.
Declaration
public ParticleSystem Particles { get; }
Property Value
Type | Description |
---|---|
ParticleSystem |
Prefab
Gets the prefab instance of RockParticles.
Declaration
public static RockParticles Prefab { get; }
Property Value
Type | Description |
---|---|
RockParticles |
Methods
| Edit this page View SourceSpawn(Vector3, Quaternion, float, float, float, float, bool)
Spawns rock particles.
Declaration
public static RockParticles Spawn(Vector3 position, Quaternion rotation, float directionRandomness, float intensity = 100, float duration = 0.1, float particleSize = 1, bool playImmediately = true)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the particles. |
Quaternion | rotation | The rotation of the particles. |
float | directionRandomness | The randomness of the particle direction. |
float | intensity | The intensity of the particles. |
float | duration | The duration of the particle effect. |
float | particleSize | The size of the particles. |
bool | playImmediately | Whether to play the particles immediately. |
Returns
Type | Description |
---|---|
RockParticles | The instance of RockParticles. |
SpawnDirectional(Vector3, Quaternion, float, float, float, bool)
Spawns directional rock particles.
Declaration
public static RockParticles SpawnDirectional(Vector3 position, Quaternion rotation, float intensity = 100, float duration = 0.1, float particleSize = 1, bool playImmediately = true)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the particles. |
Quaternion | rotation | The rotation of the particles. |
float | intensity | The intensity of the particles. |
float | duration | The duration of the particle effect. |
float | particleSize | The size of the particles. |
bool | playImmediately | Whether to play the particles immediately. |
Returns
Type | Description |
---|---|
RockParticles | The instance of RockParticles. |
SpawnNonDirectional(Vector3, float, float, float, bool)
Spawns non-directional rock particles.
Declaration
public static RockParticles SpawnNonDirectional(Vector3 position, float intensity = 100, float duration = 0.1, float particleSize = 1, bool playImmediately = true)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The position to spawn the particles. |
float | intensity | The intensity of the particles. |
float | duration | The duration of the particle effect. |
float | particleSize | The size of the particles. |
bool | playImmediately | Whether to play the particles immediately. |
Returns
Type | Description |
---|---|
RockParticles | The instance of RockParticles. |