Show / Hide Table of Contents

Class RockParticles

Manages rock particle effects.

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
RockParticles
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class RockParticles : MonoBehaviour

Properties

| Edit this page View Source

Particles

Gets the ParticleSystem component.

Declaration
public ParticleSystem Particles { get; }
Property Value
Type Description
ParticleSystem
| Edit this page View Source

Prefab

Gets the prefab instance of RockParticles.

Declaration
public static RockParticles Prefab { get; }
Property Value
Type Description
RockParticles

Methods

| Edit this page View Source

Spawn(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.

| Edit this page View Source

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.

| Edit this page View Source

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.

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾