截屏 工具

main
tengwei 2026-01-23 14:43:17 +08:00
parent b5bfe6a757
commit e7682408f5
5 changed files with 46 additions and 3 deletions

View File

@ -209,7 +209,7 @@ namespace Art.temp.Editor.AnimationTools
const string mouthPath = "Assets/Art_Out/Manual/Emoji/Tex/T_emoji_mouth_0{0}.png";
string nameId = model.name;
DataPerson dataPerson = ArtTableManager.instance.tables.PersonConfig.DataList.FirstOrDefault(p => p.Name == nameId);
DataPerson dataPerson = ArtTableManager.instance.tables.PersonConfig.DataList.FirstOrDefault(p => p.NameId == nameId);
if (dataPerson == null)
{
Debug.LogWarning($"{nameId} not found face config");
@ -224,14 +224,12 @@ namespace Art.temp.Editor.AnimationTools
{
ColorUtility.TryParseHtmlString(dataPerson.BowsColor, out Color browColor);
mats[0].SetColor("_MainColor", browColor);
Debug.LogWarning($"{dataPerson.NameId}: brow_color = {dataPerson.BowsColor}");
}
if (!string.IsNullOrEmpty(dataPerson.EyesColor))
{
ColorUtility.TryParseHtmlString(dataPerson.EyesColor, out Color eyeColor);
mats[1].SetColor("_MainColor", eyeColor);
Debug.LogWarning($"{dataPerson.NameId}: eye color = {dataPerson.EyesColor}");
}
Texture2D browTex = AssetDatabase.LoadAssetAtPath<Texture2D>(string.Format(browTexPath, dataPerson.BowsType));

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b762d97fd45aa594fa19f5b8af038c05
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d95d0d388c020204ba9a7f869b2ff43c
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,21 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -1627715435, guid: 985218c25c65a4649ba740edd451f4a9, type: 3}
m_Name: ScreenshotManager
m_EditorClassIdentifier:
scale: 1
width: 2048
height: 2048
myCamera0: {fileID: 0}
isTransparent: 1
title: Instant Screenshot
path: D:/GitHub/NLDClient/ProjectNLD/Assets

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 6c695d47aa37af94b98522df065842ec
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant: