3d pc ui
This commit is contained in:
parent
a3f101af5e
commit
dfa41b6267
|
|
@ -856,14 +856,14 @@ RectTransform:
|
||||||
m_GameObject: {fileID: 72861748541100330}
|
m_GameObject: {fileID: 72861748541100330}
|
||||||
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
|
m_LocalRotation: {x: 0, y: 1, z: 0, w: 0}
|
||||||
m_LocalPosition: {x: 0, y: 0, z: -200}
|
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_ConstrainProportionsScale: 1
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 351039660577574170}
|
m_Father: {fileID: 351039660577574170}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {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_SizeDelta: {x: 0, y: 0}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &89051422734200648
|
--- !u!1 &89051422734200648
|
||||||
|
|
@ -44507,11 +44507,11 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: 765e01a637d0a1c41926bdb5212b5d83, type: 3}
|
m_Script: {fileID: 11500000, guid: 765e01a637d0a1c41926bdb5212b5d83, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
tf_model: {fileID: 42553751937855882}
|
||||||
texts:
|
texts:
|
||||||
- {fileID: 3053266705143488882}
|
- {fileID: 3053266705143488882}
|
||||||
- {fileID: 6175458548714744768}
|
- {fileID: 6175458548714744768}
|
||||||
RawImage_costume: {fileID: 176841558950769759}
|
RawImage_costume: {fileID: 176841558950769759}
|
||||||
tf_Model: {fileID: 42553751937855882}
|
|
||||||
--- !u!1 &3425753977039102381
|
--- !u!1 &3425753977039102381
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,10 @@ using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
public class PCInfoUI_Center : MonoBehaviour
|
public class PCInfoUI_Center : UI3DModel
|
||||||
{
|
{
|
||||||
public TextMeshProUGUI[] texts; // 0 코스튬 이름, 1 코스튬 대사
|
public TextMeshProUGUI[] texts; // 0 코스튬 이름, 1 코스튬 대사
|
||||||
public RawImage RawImage_costume;
|
public RawImage RawImage_costume;
|
||||||
public Transform tf_Model; // 모델 위치
|
|
||||||
|
|
||||||
public void Set(int costumeid)
|
public void Set(int costumeid)
|
||||||
{
|
{
|
||||||
|
|
@ -20,6 +19,8 @@ public class PCInfoUI_Center : MonoBehaviour
|
||||||
RawImage_costume.texture = handle.Result;
|
RawImage_costume.texture = handle.Result;
|
||||||
Resources.UnloadUnusedAssets();
|
Resources.UnloadUnusedAssets();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Set_3DModel($"Assets/Res_Addr/PC/{costumeData.s_Prefab}.prefab");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue