Updated engine version to 2022.3.56f1

This commit is contained in:
katboi01
2025-01-20 10:59:14 +01:00
parent d3be8e28f7
commit e2d5402edb
23 changed files with 394 additions and 102 deletions
+3 -3
View File
@@ -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();
}
-1
View File
@@ -3,7 +3,6 @@ using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Networking.Types;
public class UmaViewerAudio
{
-1
View File
@@ -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;