| ParticleParameterCollectionAddUniformT Method |
Adds a uniform particle parameter.
Namespace: DigitalRune.ParticlesAssembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public IParticleParameter<T> AddUniform<T>(
string name
)
Public Function AddUniform(Of T) (
name As String
) As IParticleParameter(Of T)
public:
generic<typename T>
IParticleParameter<T>^ AddUniform(
String^ name
)
member AddUniform :
name : string -> IParticleParameter<'T>
Parameters
- name
- Type: SystemString
The name of the parameter (e.g. "Color", "Position", etc.).
Type Parameters
- T
- The type of the parameter value.
Return Value
Type:
IParticleParameterTThe existing or newly created particle parameter.
Exceptions Remarks
If the collection does not contain a particle parameter with the given
name, a new uniform particle parameter is added. If the collection
contains a particle parameter with the given name, then only the
existing particle parameter is returned - even if the parameter is varying!
See Also