public static int GetModifiedMaterial(IntPtr l) { int result; try { IMaterialModifier materialModifier = (IMaterialModifier)LuaObject.checkSelf(l); Material baseMaterial; LuaObject.checkType <Material>(l, 2, out baseMaterial); Material modifiedMaterial = materialModifier.GetModifiedMaterial(baseMaterial); LuaObject.pushValue(l, true); LuaObject.pushValue(l, modifiedMaterial); result = 2; } catch (Exception e) { result = LuaObject.error(l, e); } return(result); }
public void UnregisterModifier(IMaterialModifier modifier) { materialModifiers.Remove(modifier); }
public void RegisterModifier(IMaterialModifier modifier) { materialModifiers.Add(modifier); }