 |
MaterialOnEffectChanged Method |
OnEffectChanged is called after the effect is changed - overridden methods can return false to prevent the change of effect.
Namespace: Ab4d.SharpEngine.MaterialsAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxprotected virtual bool OnEffectChanged(
Effect? oldEffect,
Effect? newEffect
)
Parameters
- oldEffect Effect
- old Effect
- newEffect Effect
- new Effect
Return Value
Booleanfalse to prevent the change, true to allow the change
See Also