예제 #1
0
 private static void Internal_Create([Writable] Texture2D mono, int w, int h, TextureFormat format, bool mipmap, bool linear, IntPtr nativeTex)
 {
     if (!Texture2D.Internal_CreateImpl(mono, w, h, format, mipmap, linear, nativeTex))
     {
         throw new UnityException("Failed to create texture because of invalid parameters.");
     }
 }
예제 #2
0
        private static void Internal_Create([Writable] Texture2D mono, int w, int h, int mipCount, GraphicsFormat format, TextureCreationFlags flags, IntPtr nativeTex)
        {
            bool flag = !Texture2D.Internal_CreateImpl(mono, w, h, mipCount, format, flags, nativeTex);

            if (flag)
            {
                throw new UnityException("Failed to create texture because of invalid parameters.");
            }
        }