public static DynamicMaterial Create(Material instance, UObject outer) { var mat = new DynamicMaterial(); mat.NativeHandler = _Create(instance.NativeHandler, outer.NativeHandler); return(mat); }
public virtual DynamicMaterial CreateDynamicMaterial(int elementIndex, Material sourceMaterial) { var p = _CreateDynamicMaterial(NativeHandler, elementIndex, sourceMaterial.NativeHandler); if (p.ToInt64() != 0) { var m = new DynamicMaterial(); m.NativeHandler = p; return(m); } return(null); }