Click or drag to resize
DigitalRuneParticleHelperSetValueT Method
Sets the value of a uniform or varying particle parameter.

Namespace: DigitalRune.Particles
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public static void SetValue<T>(
	this IParticleParameter<T> parameter,
	int index,
	T value
)

Parameters

parameter
Type: DigitalRune.ParticlesIParticleParameterT
The particle parameter.
index
Type: SystemInt32
The index of the particle, or -1 to set the DefaultValue.
value
Type: T
The new value.

Type Parameters

T
The type of the parameter value.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IParticleParameterT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
If the particle parameter is varying and index is zero or positive, the value of the particle is set. If index is negative, the DefaultValue is set. Otherwise, if the particle parameter is uniform and the index is zero or positive, this method does nothing.
See Also