mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-11 05:19:14 -05:00
@@ -123,7 +123,7 @@ namespace UniGLTF
|
||||
var path = UnityPath.FromAsset(texture);
|
||||
if (path.IsUnderAssetsFolder)
|
||||
{
|
||||
var textureImporter = (TextureImporter) AssetImporter.GetAtPath(path.Value);
|
||||
var textureImporter = AssetImporter.GetAtPath(path.Value) as TextureImporter;
|
||||
var getSizeMethod = typeof(TextureImporter).GetMethod("GetWidthAndHeight", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
if (textureImporter != null && getSizeMethod != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user