Click or drag to resize
Ab4d.SharpEngine logo

VertexColorMaterialOnEffectChanged Method

OnEffectChanged is called after the effect is changed - overridden methods can return false to prevent the change of effect.

Namespace: Ab4d.SharpEngine.Materials
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
protected override bool OnEffectChanged(
	Effect? oldEffect,
	Effect? newEffect
)

Parameters

oldEffect  Effect
old Effect
newEffect  Effect
new Effect

Return Value

Boolean
false to prevent the change, true to allow the change
See Also