 |
EffectsManagerGetOrCreateT Method |
Returns the effect with the specified effect name and type.
When the effect with that type and name was not yet created, then a new instance is created and returned.
The created effect is disposed when this EffectsManager is disposed.
The difference between this method and
CreateNewT(String) method is, that when calling CreateNew you need to dispose the created effect.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic T GetOrCreate<T>(
string effectName
)
where T : Effect, IEffectConstructor<T>
Parameters
- effectName String
- effect name (must be unique)
Type Parameters
- T
- effect type
Return Value
Teffect with the specified effect name and type.
See Also