| ParticleParameterCollectionGetT Method (String) |
Gets a particle parameter with the specified type and name. (If the type is wrong an
exception is thrown.)
Namespace: DigitalRune.ParticlesAssembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax public IParticleParameter<T> Get<T>(
string name
)
Public Function Get(Of T) (
name As String
) As IParticleParameter(Of T)
public:
generic<typename T>
IParticleParameter<T>^ Get(
String^ name
)
member Get :
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:
IParticleParameterT
The particle parameter, or
if no particle parameter with the given
name was found.
Exceptions Exception | Condition |
---|
ParticleSystemException |
A particle parameter with the given name was found, but the parameter type cannot be cast to
type T.
|
Remarks
If the particle parameter is not found in this
ParticleParameterCollection,
then the parameter collections of any parent particle systems are searched as well (only
for uniform parameters).
See Also