Updated engine version to 2022.3.56f1
This commit is contained in:
@@ -40,7 +40,7 @@ public class TextureExporter
|
||||
{
|
||||
foreach (Material mat in renderer.sharedMaterials)
|
||||
{
|
||||
//获得材质的所有属性名,如果改属性名对应的是贴图,提取该贴图
|
||||
//»ñµÃ²ÄÖʵÄËùÓÐÊôÐÔÃû£¬Èç¹û¸ÄÊôÐÔÃû¶ÔÓ¦µÄÊÇÌùͼ£¬ÌáÈ¡¸ÃÌùͼ
|
||||
Shader mat_shader = mat.shader;
|
||||
int p_num = mat_shader.GetPropertyCount();
|
||||
for (int i = 0; i < p_num; i++)
|
||||
@@ -68,7 +68,7 @@ public class TextureExporter
|
||||
{
|
||||
var clip_texture = duplicateTexture(mat_texture);
|
||||
var pixels = clip_texture.GetPixels(0, 0, clip_texture.width / 4, clip_texture.height);
|
||||
clip_texture.Resize(clip_texture.width / 4, clip_texture.height);
|
||||
clip_texture.Reinitialize(clip_texture.width / 4, clip_texture.height);
|
||||
clip_texture.SetPixels(pixels);
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ public class TextureExporter
|
||||
}
|
||||
}
|
||||
}
|
||||
Debug.Log("提取成功");
|
||||
Debug.Log("ÌáÈ¡³É¹¦");
|
||||
return textureNames.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace LibMMD.Unity3D
|
||||
}
|
||||
}
|
||||
|
||||
tex.Resize(newWidth, newHeight);
|
||||
tex.Reinitialize(newWidth, newHeight);
|
||||
tex.SetPixels(_newColors);
|
||||
tex.Apply();
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking.Types;
|
||||
|
||||
public class UmaViewerAudio
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ using System.Text;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.Networking.Types;
|
||||
using UnityEngine.UI;
|
||||
using static PageManager;
|
||||
using Debug = UnityEngine.Debug;
|
||||
|
||||
Reference in New Issue
Block a user