 |
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: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
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