 |
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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
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