This commit is contained in:
Ino 2024-12-30 14:00:34 +09:00
parent a3f101af5e
commit dfa41b6267
2 changed files with 6 additions and 5 deletions

View File

@ -856,14 +856,14 @@ RectTransform:
m_GameObject: {fileID: 72861748541100330}
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
m_LocalPosition: {x: 0, y: 0, z: -200}
m_LocalScale: {x: 150, y: 150, z: 150}
m_LocalScale: {x: 300, y: 300, z: 300}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 351039660577574170}
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -156, y: -235}
m_AnchoredPosition: {x: -400, y: -384}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &89051422734200648
@ -44507,11 +44507,11 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 765e01a637d0a1c41926bdb5212b5d83, type: 3}
m_Name:
m_EditorClassIdentifier:
tf_model: {fileID: 42553751937855882}
texts:
- {fileID: 3053266705143488882}
- {fileID: 6175458548714744768}
RawImage_costume: {fileID: 176841558950769759}
tf_Model: {fileID: 42553751937855882}
--- !u!1 &3425753977039102381
GameObject:
m_ObjectHideFlags: 0

View File

@ -2,11 +2,10 @@ using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class PCInfoUI_Center : MonoBehaviour
public class PCInfoUI_Center : UI3DModel
{
public TextMeshProUGUI[] texts; // 0 코스튬 이름, 1 코스튬 대사
public RawImage RawImage_costume;
public Transform tf_Model; // 모델 위치
public void Set(int costumeid)
{
@ -20,6 +19,8 @@ public class PCInfoUI_Center : MonoBehaviour
RawImage_costume.texture = handle.Result;
Resources.UnloadUnusedAssets();
});
Set_3DModel($"Assets/Res_Addr/PC/{costumeData.s_Prefab}.prefab");
}
}
}