API ReferenceSandbox
ParticleSystemclass
A particle effect system that allows for complex visual effects, such as explosions, muzzle flashes, impact effects, etc.
Obsolete
This API type is obsolete.
Constructors1
Showing 1 constructors
public ParticleSystem()
No results match this filter.
Methods3
Showing 3 methods
public Sandbox.ParticleSystem GetChild(int index)
Returns child particle at given index.
| Parameter | Type | Description |
|---|---|---|
| index | int | Index of child particle system, starting at 0. |
Exceptions
| Exception | Condition |
|---|---|
ArgumentOutOfRangeException | Thrown when given index exceeds range of [0,ChildCount-1] |
public static Sandbox.ParticleSystem Load(string filename)
Loads a particle system from given file.
Obsolete: This API member is obsolete.
| Parameter | Type | Description |
|---|---|---|
| filename | string | — |
public static System.Threading.Tasks.Task`1<Sandbox.ParticleSystem> LoadAsync(string filename)
Load a particle system by file path.
Obsolete: This API member is obsolete.
| Parameter | Type | Description |
|---|---|---|
| filename | string | The file path to load as a particle system. |
No results match this filter.
Properties5
Showing 5 properties
public BBox Sandbox.ParticleSystem.Bounds { get; set; }
Static bounding box of the resource.
public int Sandbox.ParticleSystem.ChildCount { get; set; }
How many child particle systems do we have
Returns:
int—public virtual bool Sandbox.ParticleSystem.IsError { get; set; }
Whether the particle system is invalid, or has not yet loaded.
Returns:
bool—public virtual bool Sandbox.ParticleSystem.IsValid { get; set; }
Returns:
bool—public string Sandbox.ParticleSystem.Name { get; set; }
Particle system file name.
Returns:
string—No results match this filter.