 |
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.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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