mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 21:14:19 -05:00
commit
8a3e668f36
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user