Merge pull request #1844 from mkc1370/feature/resize_to_reinitialize

Rename Texture2D.Resize to Reinitialize
This commit is contained in:
ousttrue 2022-10-07 13:05:07 +09:00 committed by GitHub
commit 38ef11367b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -294,7 +294,11 @@ namespace VRM
BilinearScale(0, newHeight);
#if UNITY_2021_2_OR_NEWER
tex.Reinitialize(newWidth, newHeight);
#else
tex.Resize(newWidth, newHeight);
#endif
tex.SetPixels(newColors);
tex.Apply();
}

View File

@ -190,7 +190,11 @@ namespace UniVRM10
BilinearScale(0, newHeight);
#if UNITY_2021_2_OR_NEWER
tex.Reinitialize(newWidth, newHeight);
#else
tex.Resize(newWidth, newHeight);
#endif
tex.SetPixels(newColors);
tex.Apply();
}