예제 #1
0
        public static DynamicMaterial Create(Material instance, UObject outer)
        {
            var mat = new DynamicMaterial();

            mat.NativeHandler = _Create(instance.NativeHandler, outer.NativeHandler);
            return(mat);
        }
예제 #2
0
        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);
        }