Class ParticleExtensions
Extension methods for the particle system.
Namespace: Evergine.Framework.Extensions
Assembly: Evergine.Framework.dll
Syntax
public static class ParticleExtensions
Methods
ToDirective(EmitRandomized)
Converts the source randomized enum to a directive string.
Declaration
public static string ToDirective(this EmitRandomized emitRandomized)
Parameters
Type | Name | Description |
---|---|---|
EmitRandomized | emitRandomized | The source emission randomized. |
Returns
Type | Description |
---|---|
string | The directive string. |
ToDirective(EntityEmitterType)
Converts the source emission mode to a directive string.
Declaration
public static string ToDirective(this EntityEmitterType sourceEmission)
Parameters
Type | Name | Description |
---|---|---|
EntityEmitterType | sourceEmission | The source emission type. |
Returns
Type | Description |
---|---|
string | The directive string. |
ToDirective(ParameterMode, string)
Converts the parameter mode into a directive string.
Declaration
public static string ToDirective(this ParameterMode parameterMode, string label)
Parameters
Type | Name | Description |
---|---|---|
ParameterMode | parameterMode | The parameter mode. |
string | label | The parameter label. |
Returns
Type | Description |
---|---|
string | The directive string. |
ToDirective(RandomPrecissionEnum)
Converts the source random precision to a directive string.
Declaration
public static string ToDirective(this RandomPrecissionEnum sourceRandom)
Parameters
Type | Name | Description |
---|---|---|
RandomPrecissionEnum | sourceRandom | The source random precision. |
Returns
Type | Description |
---|---|
string | The directive string. |
ToDirective(SimulationSpaceMode)
Converts the simulation space mode to a directive string.
Declaration
public static string ToDirective(this SimulationSpaceMode simulationSpace)
Parameters
Type | Name | Description |
---|---|---|
SimulationSpaceMode | simulationSpace | The simulation space mode. |
Returns
Type | Description |
---|---|
string | The directive string. |
ToMeshTypeDirective(EntityMeshData)
Converts the entity mesh data in a directive according to its mesh type.
Declaration
public static string ToMeshTypeDirective(this EntityMeshData meshData)
Parameters
Type | Name | Description |
---|---|---|
EntityMeshData | meshData | The source mesh data. |
Returns
Type | Description |
---|---|
string | The directive string. |