Files
AIC-Project/Doc/UIPrefabCreater/UI_Fighter3D.json
T

345 lines
8.3 KiB
JSON

{
"schemaVersion": 1,
"prefabName": "UI_Fighter3D",
"prefabPath": "Assets/MiniGames/Fighter3D/res/UI/Prefab/UI_Fighter3D.prefab",
"description": "Fighter3D battle HUD. Runtime loads this mini-game prefab directly, keeps it alive for the match, and binds Txt_Title, Txt_Left, Txt_Right, Img_LeftHpFill, and Img_RightHpFill by name.",
"canvas": {
"canvasScaler": {
"referenceResolution": [2048, 1024],
"matchWidthOrHeight": 0.5
}
},
"assets": {
"sprites": {
"ui_panel_header": "Assets/Game/Art/UI/Texture/Common/ui_panel_header.png",
"ui_panel_content": "Assets/Game/Art/UI/Texture/Common/ui_panel_content.png",
"progress_bg": "Assets/Game/Art/UI/Texture/Common/progress_bg.png",
"progress_fill_green": "Assets/Game/Art/UI/Texture/Common/progress_fill_green.png",
"progress_fill_warn": "Assets/Game/Art/UI/Texture/Common/progress_fill_warn.png"
}
},
"nodes": [
{
"name": "UI_Fighter3D",
"parent": null,
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 1],
"offsetMin": [0, 0],
"offsetMax": [0, 0]
},
"components": [
{
"type": "Canvas",
"sortingOrder": 25000
},
{
"type": "CanvasScaler",
"referenceResolution": [2048, 1024],
"matchWidthOrHeight": 0.5
},
{
"type": "GraphicRaycaster"
},
{
"type": "CanvasGroup",
"alpha": 0.96,
"interactable": false,
"blocksRaycasts": false
}
]
},
{
"name": "Panel_Top",
"parent": "UI_Fighter3D",
"active": true,
"rect": {
"anchorMin": [0.5, 1],
"anchorMax": [0.5, 1],
"pivot": [0.5, 1],
"anchoredPosition": [0, -28],
"sizeDelta": [1120, 112]
},
"components": [
{
"type": "Image",
"sprite": "ui_panel_header",
"imageType": "Sliced",
"raycastTarget": false,
"color": "#FFFFFFFF"
},
{
"type": "Shadow",
"effectColor": "#06101F66",
"effectDistance": [0, -6],
"useGraphicAlpha": true
}
]
},
{
"name": "Txt_Title",
"parent": "Panel_Top",
"active": true,
"rect": {
"anchorMin": [0.5, 0.5],
"anchorMax": [0.5, 0.5],
"pivot": [0.5, 0.5],
"anchoredPosition": [0, 10],
"sizeDelta": [760, 64]
},
"components": [
{
"type": "TextMeshProUGUI",
"text": "Fighter3D",
"fontSize": 44,
"fontStyle": "Bold",
"alignment": "Center",
"color": "#F6F8FFFF",
"raycastTarget": false
},
{
"type": "Outline",
"effectColor": "#102033CC",
"effectDistance": [2, -2],
"useGraphicAlpha": true
}
]
},
{
"name": "Group_LeftHud",
"parent": "UI_Fighter3D",
"active": true,
"rect": {
"anchorMin": [0, 1],
"anchorMax": [0, 1],
"pivot": [0, 1],
"anchoredPosition": [48, -132],
"sizeDelta": [720, 128]
},
"components": [
{
"type": "Image",
"sprite": "ui_panel_content",
"imageType": "Sliced",
"raycastTarget": false,
"color": "#1D3350CC"
},
{
"type": "Shadow",
"effectColor": "#06101F5C",
"effectDistance": [0, -5],
"useGraphicAlpha": true
}
]
},
{
"name": "Txt_Left",
"parent": "Group_LeftHud",
"active": true,
"rect": {
"anchorMin": [0, 1],
"anchorMax": [1, 1],
"pivot": [0.5, 1],
"anchoredPosition": [0, -16],
"sizeDelta": [-48, 52]
},
"components": [
{
"type": "TextMeshProUGUI",
"text": "P1",
"fontSize": 28,
"fontStyle": "Bold",
"alignment": "Left",
"color": "#F6F8FFFF",
"raycastTarget": false
},
{
"type": "Outline",
"effectColor": "#102033CC",
"effectDistance": [1, -1],
"useGraphicAlpha": true
}
]
},
{
"name": "Img_LeftHpBg",
"parent": "Group_LeftHud",
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 0],
"pivot": [0.5, 0],
"anchoredPosition": [0, 24],
"sizeDelta": [-48, 40]
},
"components": [
{
"type": "Image",
"sprite": "progress_bg",
"imageType": "Sliced",
"raycastTarget": false,
"color": "#FFFFFFFF"
}
]
},
{
"name": "Img_LeftHpFill",
"parent": "Img_LeftHpBg",
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 1],
"offsetMin": [0, 0],
"offsetMax": [0, 0]
},
"components": [
{
"type": "Image",
"sprite": "progress_fill_green",
"imageType": "Filled",
"fillMethod": "Horizontal",
"raycastTarget": false,
"color": "#FFFFFFFF"
}
]
},
{
"name": "Group_RightHud",
"parent": "UI_Fighter3D",
"active": true,
"rect": {
"anchorMin": [1, 1],
"anchorMax": [1, 1],
"pivot": [1, 1],
"anchoredPosition": [-48, -132],
"sizeDelta": [720, 128]
},
"components": [
{
"type": "Image",
"sprite": "ui_panel_content",
"imageType": "Sliced",
"raycastTarget": false,
"color": "#501D2FCC"
},
{
"type": "Shadow",
"effectColor": "#06101F5C",
"effectDistance": [0, -5],
"useGraphicAlpha": true
}
]
},
{
"name": "Txt_Right",
"parent": "Group_RightHud",
"active": true,
"rect": {
"anchorMin": [0, 1],
"anchorMax": [1, 1],
"pivot": [0.5, 1],
"anchoredPosition": [0, -16],
"sizeDelta": [-48, 52]
},
"components": [
{
"type": "TextMeshProUGUI",
"text": "P2",
"fontSize": 28,
"fontStyle": "Bold",
"alignment": "Right",
"color": "#F6F8FFFF",
"raycastTarget": false
},
{
"type": "Outline",
"effectColor": "#102033CC",
"effectDistance": [1, -1],
"useGraphicAlpha": true
}
]
},
{
"name": "Img_RightHpBg",
"parent": "Group_RightHud",
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 0],
"pivot": [0.5, 0],
"anchoredPosition": [0, 24],
"sizeDelta": [-48, 40]
},
"components": [
{
"type": "Image",
"sprite": "progress_bg",
"imageType": "Sliced",
"raycastTarget": false,
"color": "#FFFFFFFF"
}
]
},
{
"name": "Img_RightHpFill",
"parent": "Img_RightHpBg",
"active": true,
"rect": {
"anchorMin": [0, 0],
"anchorMax": [1, 1],
"offsetMin": [0, 0],
"offsetMax": [0, 0]
},
"components": [
{
"type": "Image",
"sprite": "progress_fill_warn",
"imageType": "Filled",
"fillMethod": "Horizontal",
"raycastTarget": false,
"color": "#FFFFFFFF"
}
]
},
{
"name": "Txt_Help",
"parent": "UI_Fighter3D",
"active": true,
"rect": {
"anchorMin": [0.5, 0],
"anchorMax": [0.5, 0],
"pivot": [0.5, 0],
"anchoredPosition": [0, 36],
"sizeDelta": [920, 52]
},
"components": [
{
"type": "TextMeshProUGUI",
"text": "A/D move S guard J light K heavy",
"fontSize": 24,
"fontStyle": "Bold",
"alignment": "Center",
"color": "#F6F8FFFF",
"raycastTarget": false
},
{
"type": "Outline",
"effectColor": "#102033CC",
"effectDistance": [1, -1],
"useGraphicAlpha": true
}
]
}
],
"bindings": [
"Txt_Title",
"Txt_Left",
"Txt_Right",
"Img_LeftHpFill",
"Img_RightHpFill",
"Txt_Help"
],
"events": []
}