mirror of
https://github.com/DerTyp7/example-top-down-unity.git
synced 2025-10-29 12:32:09 +01:00
kp
This commit is contained in:
@@ -505,6 +505,141 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: ee2fcb6d299019740bbede78bbc6a1d7, type: 3}
|
m_Script: {fileID: 11500000, guid: ee2fcb6d299019740bbede78bbc6a1d7, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
--- !u!1 &1404527750
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1404527751}
|
||||||
|
- component: {fileID: 1404527753}
|
||||||
|
- component: {fileID: 1404527752}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Text (TMP)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!224 &1404527751
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1404527750}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 1632946789}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 1, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 0}
|
||||||
|
m_AnchoredPosition: {x: -25, y: 15}
|
||||||
|
m_SizeDelta: {x: 40, y: 20}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1404527752
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1404527750}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_text: 100
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: 2100000, guid: 79459efec17a4d00a321bdcc27bbc385, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_enableVertexGradient: 0
|
||||||
|
m_colorMode: 3
|
||||||
|
m_fontColorGradient:
|
||||||
|
topLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
topRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
bottomRight: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_fontColorGradientPreset: {fileID: 0}
|
||||||
|
m_spriteAsset: {fileID: 0}
|
||||||
|
m_tintAllSprites: 0
|
||||||
|
m_StyleSheet: {fileID: 0}
|
||||||
|
m_TextStyleHashCode: -1183493901
|
||||||
|
m_overrideHtmlColors: 0
|
||||||
|
m_faceColor:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4294967295
|
||||||
|
m_fontSize: 18
|
||||||
|
m_fontSizeBase: 20
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 1
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 4
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_enableWordWrapping: 1
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 1
|
||||||
|
m_enableExtraPadding: 0
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_parseCtrlCharacters: 1
|
||||||
|
m_isOrthographic: 1
|
||||||
|
m_isCullingEnabled: 0
|
||||||
|
m_horizontalMapping: 0
|
||||||
|
m_verticalMapping: 0
|
||||||
|
m_uvLineOffset: 0
|
||||||
|
m_geometrySortingOrder: 0
|
||||||
|
m_IsTextObjectScaleStatic: 0
|
||||||
|
m_VertexBufferAutoSizeReduction: 0
|
||||||
|
m_useMaxVisibleDescender: 1
|
||||||
|
m_pageToDisplay: 1
|
||||||
|
m_margin: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
--- !u!222 &1404527753
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1404527750}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &1618529780
|
--- !u!1 &1618529780
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -551,6 +686,29 @@ Transform:
|
|||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 4
|
m_RootOrder: 4
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &1632946788 stripped
|
||||||
|
GameObject:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 1031884711933943707, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 4215392547039679762}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!224 &1632946789 stripped
|
||||||
|
RectTransform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: 2917703646420147887, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 4215392547039679762}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
--- !u!114 &1632946793
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1632946788}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 8e3ae0ca7d3fa0f4cb5a877a7f8183ec, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
index: 0
|
||||||
--- !u!1 &1683721763
|
--- !u!1 &1683721763
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -707,12 +865,28 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
|
||||||
value: 1
|
value: 3
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
|
||||||
|
value:
|
||||||
|
objectReference: {fileID: 831773411}
|
||||||
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
|
||||||
value: 2
|
value: 2
|
||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
|
||||||
|
value: buttonEvent
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
|
||||||
|
value: UI_Inventory, Assembly-CSharp
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 2310262034725730047, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
|
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
|
||||||
|
value: UnityEngine.Object, UnityEngine
|
||||||
|
objectReference: {fileID: 0}
|
||||||
- target: {fileID: 4215392545672552185, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
- target: {fileID: 4215392545672552185, guid: ac29b266608f92b419b28a16d8ee7c1b, type: 3}
|
||||||
propertyPath: m_IsActive
|
propertyPath: m_IsActive
|
||||||
value: 0
|
value: 0
|
||||||
|
|||||||
10
Assets/Scripts/ButtonEventHandler.cs
Normal file
10
Assets/Scripts/ButtonEventHandler.cs
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class ButtonEventHandler : MonoBehaviour
|
||||||
|
{
|
||||||
|
|
||||||
|
[SerializeField] UI_Inventory inventory;
|
||||||
|
|
||||||
|
}
|
||||||
11
Assets/Scripts/ButtonEventHandler.cs.meta
Normal file
11
Assets/Scripts/ButtonEventHandler.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 005d6c21020af7e41813cdc4202c886f
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
8
Assets/Scripts/Identity.cs
Normal file
8
Assets/Scripts/Identity.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Identity : MonoBehaviour
|
||||||
|
{
|
||||||
|
public int index;
|
||||||
|
}
|
||||||
11
Assets/Scripts/Identity.cs.meta
Normal file
11
Assets/Scripts/Identity.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 8e3ae0ca7d3fa0f4cb5a877a7f8183ec
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -14,6 +14,7 @@ public class Slot
|
|||||||
/// [Methods]
|
/// [Methods]
|
||||||
/// void addItem(int count = 1)
|
/// void addItem(int count = 1)
|
||||||
/// void removeItem(int count = 1)
|
/// void removeItem(int count = 1)
|
||||||
|
/// void clear()
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
||||||
Item item;
|
Item item;
|
||||||
@@ -36,5 +37,18 @@ public class Slot
|
|||||||
{
|
{
|
||||||
// removes any number of items from the slot will also go negative
|
// removes any number of items from the slot will also go negative
|
||||||
this.count -= count;
|
this.count -= count;
|
||||||
}
|
}
|
||||||
|
public void clear()
|
||||||
|
{
|
||||||
|
item = null;
|
||||||
|
count = 0;
|
||||||
|
}
|
||||||
|
public Slot copy()
|
||||||
|
{
|
||||||
|
Slot slot = new Slot(maxItems);
|
||||||
|
slot.count = count;
|
||||||
|
slot.ItemType = ItemType;
|
||||||
|
|
||||||
|
return slot;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
|
|
||||||
@@ -8,13 +9,51 @@ public class UI_Inventory : MonoBehaviour
|
|||||||
Inventory playerInventory;
|
Inventory playerInventory;
|
||||||
public Transform inventoryContainer;
|
public Transform inventoryContainer;
|
||||||
public Transform itemSlotTemplate;
|
public Transform itemSlotTemplate;
|
||||||
|
private RectTransform[] UIItemSlots;
|
||||||
|
private Button[] buttons;
|
||||||
|
private Slot pickedItem = new Slot();
|
||||||
|
private RectTransform pickedItemSlot;
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
//itemSlotTemplate = inventoryContainer.Find("containerTemplate");
|
//itemSlotTemplate = inventoryContainer.Find("containerTemplate");
|
||||||
|
pickedItemSlot = Instantiate(itemSlotTemplate, this.transform).GetComponent<RectTransform>();
|
||||||
|
}
|
||||||
|
|
||||||
|
void pickItem(int index)
|
||||||
|
{
|
||||||
|
pickedItem = playerInventory.getInventory[index].copy();
|
||||||
|
playerInventory.getInventory[index].clear();
|
||||||
|
UIItemSlots[index].GetChild(0).Find("Icon").gameObject.SetActive(false);
|
||||||
|
}
|
||||||
|
void placeItem()
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
public void buttonEvent(int index)
|
public void buttonEvent(int index)
|
||||||
{
|
{
|
||||||
Debug.Log("yeet");
|
if (pickedItem.ItemType == null && playerInventory.getInventory[index].ItemType != null)
|
||||||
|
{
|
||||||
|
pickItem(index);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (pickedItem.ItemType != null)
|
||||||
|
{
|
||||||
|
int rest = playerInventory.addItemAt(index, pickedItem.ItemType, pickedItem.Count);
|
||||||
|
if (rest == 0)
|
||||||
|
{
|
||||||
|
pickedItem.clear();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pickedItem.Count = rest;
|
||||||
|
}
|
||||||
|
//placeItem(index);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//Debug.Log("button " + index + " has been pressed!");
|
||||||
}
|
}
|
||||||
public void setInventory(Inventory inventory)
|
public void setInventory(Inventory inventory)
|
||||||
{
|
{
|
||||||
@@ -22,6 +61,27 @@ public class UI_Inventory : MonoBehaviour
|
|||||||
inventory.onItemChangedCallback += updateInventory;
|
inventory.onItemChangedCallback += updateInventory;
|
||||||
updateInventory();
|
updateInventory();
|
||||||
}
|
}
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
//buttons[index] = itemSlotRectTransform.Find("Button").GetComponent<Button>();
|
||||||
|
//itemSlotRectTransform.Find("Button").GetComponent<Identity>().index = index;
|
||||||
|
//buttons[index].onClick.AddListener(() => buttonEvent(itemSlotRectTransform.Find("Button").GetComponent<Identity>().index));
|
||||||
|
pickedItemSlot.anchoredPosition = new Vector2(Input.mousePosition.x, 0);
|
||||||
|
pickedItemSlot.gameObject.SetActive(true);
|
||||||
|
pickedItemSlot.gameObject.name = "pickedItem";
|
||||||
|
|
||||||
|
if (pickedItem.ItemType != null)
|
||||||
|
{
|
||||||
|
Transform item = pickedItemSlot.GetChild(0).Find("Icon");
|
||||||
|
item.gameObject.SetActive(true);
|
||||||
|
item.GetComponent<Image>().sprite = pickedItem.ItemType.sprite;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Transform item = pickedItemSlot.GetChild(0).Find("Icon");
|
||||||
|
item.gameObject.SetActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
private void updateInventory()
|
private void updateInventory()
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -31,20 +91,37 @@ public class UI_Inventory : MonoBehaviour
|
|||||||
int x = 0;
|
int x = 0;
|
||||||
int y = 0;
|
int y = 0;
|
||||||
int index = 0;
|
int index = 0;
|
||||||
|
if (UIItemSlots != null) {
|
||||||
|
foreach (RectTransform ItemSLot in UIItemSlots)
|
||||||
|
{
|
||||||
|
Destroy(ItemSLot.gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
UIItemSlots = new RectTransform[playerInventory.getInventory.Count];
|
||||||
|
buttons = new Button[playerInventory.getInventory.Count];
|
||||||
//inventoryContainer.GetComponent<RectTransform>().
|
//inventoryContainer.GetComponent<RectTransform>().
|
||||||
foreach (Slot slot in playerInventory.getInventory)
|
foreach (Slot slot in playerInventory.getInventory)
|
||||||
{
|
{
|
||||||
|
|
||||||
RectTransform itemSlotRectTransform = Instantiate(itemSlotTemplate, inventoryContainer).GetComponent<RectTransform>();
|
RectTransform itemSlotRectTransform = Instantiate(itemSlotTemplate, inventoryContainer).GetComponent<RectTransform>();
|
||||||
|
buttons[index] = itemSlotRectTransform.Find("Button").GetComponent<Button>();
|
||||||
|
itemSlotRectTransform.Find("Button").GetComponent<Identity>().index = index;
|
||||||
|
buttons[index].onClick.AddListener(() => buttonEvent(itemSlotRectTransform.Find("Button").GetComponent<Identity>().index));
|
||||||
itemSlotRectTransform.anchoredPosition = new Vector2(x* slotSize + slotSize * 0.5f,y * slotSize - slotSize * 0.5f );
|
itemSlotRectTransform.anchoredPosition = new Vector2(x* slotSize + slotSize * 0.5f,y * slotSize - slotSize * 0.5f );
|
||||||
itemSlotRectTransform.gameObject.SetActive(true);
|
itemSlotRectTransform.gameObject.SetActive(true);
|
||||||
itemSlotRectTransform.gameObject.name = "ItemSlot" + index;
|
itemSlotRectTransform.gameObject.name = "ItemSlot" + index;
|
||||||
|
|
||||||
if (slot.ItemType != null)
|
if (slot.ItemType != null)
|
||||||
{
|
{
|
||||||
Transform Item = itemSlotRectTransform.GetChild(0).Find("Icon");
|
Transform item = itemSlotRectTransform.GetChild(0).Find("Icon");
|
||||||
Item.gameObject.SetActive(true);
|
Transform itemCount = itemSlotRectTransform.GetChild(0).Find("Count");
|
||||||
Item.GetComponent<Image>().sprite = slot.ItemType.sprite;
|
item.gameObject.SetActive(true);
|
||||||
|
item.GetComponent<Image>().sprite = slot.ItemType.sprite;
|
||||||
|
if (slot.Count > 1)
|
||||||
|
{
|
||||||
|
itemCount.gameObject.SetActive(true);
|
||||||
|
itemCount.GetComponent<TextMeshProUGUI>().text = slot.Count.ToString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
x++;
|
x++;
|
||||||
if (x > 3)
|
if (x > 3)
|
||||||
@@ -52,6 +129,7 @@ public class UI_Inventory : MonoBehaviour
|
|||||||
x = 0;
|
x = 0;
|
||||||
y--;
|
y--;
|
||||||
}
|
}
|
||||||
|
UIItemSlots[index] = itemSlotRectTransform;
|
||||||
index++;
|
index++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,14 +32,14 @@ Material:
|
|||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _MainTex:
|
- _MainTex:
|
||||||
m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee,
|
m_Texture: {fileID: 28684132378477856, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
|
||||||
type: 2}
|
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
- _OutlineTex:
|
- _OutlineTex:
|
||||||
m_Texture: {fileID: 2800000, guid: f88677df267a41d6be1e7a6133e7d227, type: 3}
|
m_Texture: {fileID: 2800000, guid: f88677df267a41d6be1e7a6133e7d227, type: 3}
|
||||||
m_Scale: {x: 1, y: 1}
|
m_Scale: {x: 1, y: 1}
|
||||||
m_Offset: {x: 0, y: 0}
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
m_Floats:
|
m_Floats:
|
||||||
- _Ambient: 0
|
- _Ambient: 0
|
||||||
- _Bevel: 1
|
- _Bevel: 1
|
||||||
@@ -50,6 +50,7 @@ Material:
|
|||||||
- _BumpFace: 0
|
- _BumpFace: 0
|
||||||
- _BumpOutline: 0
|
- _BumpOutline: 0
|
||||||
- _ColorMask: 15
|
- _ColorMask: 15
|
||||||
|
- _CullMode: 0
|
||||||
- _Diffuse: 0
|
- _Diffuse: 0
|
||||||
- _FaceDilate: 0.15
|
- _FaceDilate: 0.15
|
||||||
- _FaceUVSpeedX: 0
|
- _FaceUVSpeedX: 0
|
||||||
@@ -69,8 +70,8 @@ Material:
|
|||||||
- _PerspectiveFilter: 0
|
- _PerspectiveFilter: 0
|
||||||
- _Reflectivity: 12.76
|
- _Reflectivity: 12.76
|
||||||
- _ScaleRatioA: 0.9
|
- _ScaleRatioA: 0.9
|
||||||
- _ScaleRatioB: 0.6525
|
- _ScaleRatioB: 0.59624994
|
||||||
- _ScaleRatioC: 0.6525
|
- _ScaleRatioC: 0.59624994
|
||||||
- _ScaleX: 1
|
- _ScaleX: 1
|
||||||
- _ScaleY: 1
|
- _ScaleY: 1
|
||||||
- _ShaderFlags: 0
|
- _ShaderFlags: 0
|
||||||
@@ -102,3 +103,4 @@ Material:
|
|||||||
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _SpecularColor: {r: 0.7689687, g: 1, b: 0.75000346, a: 1}
|
- _SpecularColor: {r: 0.7689687, g: 1, b: 0.75000346, a: 1}
|
||||||
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
- _UnderlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
|
|||||||
868
UserSettings/Layouts/CurrentMaximizeLayout.dwlt
Normal file
868
UserSettings/Layouts/CurrentMaximizeLayout.dwlt
Normal file
@@ -0,0 +1,868 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &1
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3}
|
||||||
|
- {fileID: 12}
|
||||||
|
m_Position:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 30
|
||||||
|
width: 1536
|
||||||
|
height: 730.8
|
||||||
|
m_MinSize: {x: 300, y: 200}
|
||||||
|
m_MaxSize: {x: 24288, y: 16192}
|
||||||
|
vertical: 0
|
||||||
|
controlID: -1
|
||||||
|
--- !u!114 &2
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12015, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MinSize: {x: 200, y: 200}
|
||||||
|
m_MaxSize: {x: 4000, y: 4000}
|
||||||
|
m_TitleContent:
|
||||||
|
m_Text: Game
|
||||||
|
m_Image: {fileID: 4621777727084837110, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
|
m_Tooltip:
|
||||||
|
m_Pos:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 289.6
|
||||||
|
y: 73.6
|
||||||
|
width: 882.80005
|
||||||
|
height: 411
|
||||||
|
m_ViewDataDictionary: {fileID: 0}
|
||||||
|
m_OverlayCanvas:
|
||||||
|
m_LastAppliedPresetName: Default
|
||||||
|
m_SaveData: []
|
||||||
|
m_SerializedViewNames: []
|
||||||
|
m_SerializedViewValues: []
|
||||||
|
m_PlayModeViewName: GameView
|
||||||
|
m_ShowGizmos: 0
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
m_TargetSize: {x: 1920, y: 1080}
|
||||||
|
m_TextureFilterMode: 0
|
||||||
|
m_TextureHideFlags: 61
|
||||||
|
m_RenderIMGUI: 1
|
||||||
|
m_EnterPlayModeBehavior: 0
|
||||||
|
m_UseMipMap: 0
|
||||||
|
m_VSyncEnabled: 0
|
||||||
|
m_Gizmos: 0
|
||||||
|
m_Stats: 0
|
||||||
|
m_SelectedSizes: 03000000000000000000000000000000000000000000000000000000000000000000000000000000
|
||||||
|
m_ZoomArea:
|
||||||
|
m_HRangeLocked: 0
|
||||||
|
m_VRangeLocked: 0
|
||||||
|
hZoomLockedByDefault: 0
|
||||||
|
vZoomLockedByDefault: 0
|
||||||
|
m_HBaseRangeMin: -768
|
||||||
|
m_HBaseRangeMax: 768
|
||||||
|
m_VBaseRangeMin: -432
|
||||||
|
m_VBaseRangeMax: 432
|
||||||
|
m_HAllowExceedBaseRangeMin: 1
|
||||||
|
m_HAllowExceedBaseRangeMax: 1
|
||||||
|
m_VAllowExceedBaseRangeMin: 1
|
||||||
|
m_VAllowExceedBaseRangeMax: 1
|
||||||
|
m_ScaleWithWindow: 0
|
||||||
|
m_HSlider: 0
|
||||||
|
m_VSlider: 0
|
||||||
|
m_IgnoreScrollWheelUntilClicked: 0
|
||||||
|
m_EnableMouseInput: 0
|
||||||
|
m_EnableSliderZoomHorizontal: 0
|
||||||
|
m_EnableSliderZoomVertical: 0
|
||||||
|
m_UniformScale: 1
|
||||||
|
m_UpDirection: 1
|
||||||
|
m_DrawArea:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 21
|
||||||
|
width: 882.80005
|
||||||
|
height: 390
|
||||||
|
m_Scale: {x: 0.4513889, y: 0.4513889}
|
||||||
|
m_Translation: {x: 441.40002, y: 195}
|
||||||
|
m_MarginLeft: 0
|
||||||
|
m_MarginRight: 0
|
||||||
|
m_MarginTop: 0
|
||||||
|
m_MarginBottom: 0
|
||||||
|
m_LastShownAreaInsideMargins:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: -977.8708
|
||||||
|
y: -432
|
||||||
|
width: 1955.7416
|
||||||
|
height: 864
|
||||||
|
m_MinimalGUI: 1
|
||||||
|
m_defaultScale: 0.4513889
|
||||||
|
m_LastWindowPixelSize: {x: 1103.5, y: 513.75}
|
||||||
|
m_ClearInEditMode: 1
|
||||||
|
m_NoCameraWarning: 1
|
||||||
|
m_LowResolutionForAspectRatios: 01000000000000000000
|
||||||
|
m_XRRenderMode: 0
|
||||||
|
m_RenderTexture: {fileID: 0}
|
||||||
|
--- !u!114 &3
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 4}
|
||||||
|
- {fileID: 9}
|
||||||
|
m_Position:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1174.4
|
||||||
|
height: 730.8
|
||||||
|
m_MinSize: {x: 200, y: 200}
|
||||||
|
m_MaxSize: {x: 16192, y: 16192}
|
||||||
|
vertical: 1
|
||||||
|
controlID: -1
|
||||||
|
--- !u!114 &4
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 5}
|
||||||
|
- {fileID: 7}
|
||||||
|
m_Position:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1174.4
|
||||||
|
height: 432
|
||||||
|
m_MinSize: {x: 200, y: 100}
|
||||||
|
m_MaxSize: {x: 16192, y: 8096}
|
||||||
|
vertical: 0
|
||||||
|
controlID: -1
|
||||||
|
--- !u!114 &5
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Children: []
|
||||||
|
m_Position:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 289.6
|
||||||
|
height: 432
|
||||||
|
m_MinSize: {x: 201, y: 221}
|
||||||
|
m_MaxSize: {x: 4001, y: 4021}
|
||||||
|
m_ActualView: {fileID: 6}
|
||||||
|
m_Panes:
|
||||||
|
- {fileID: 6}
|
||||||
|
m_Selected: 0
|
||||||
|
m_LastSelected: 0
|
||||||
|
--- !u!114 &6
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12061, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MinSize: {x: 200, y: 200}
|
||||||
|
m_MaxSize: {x: 4000, y: 4000}
|
||||||
|
m_TitleContent:
|
||||||
|
m_Text: Hierarchy
|
||||||
|
m_Image: {fileID: -3734745235275155857, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
|
m_Tooltip:
|
||||||
|
m_Pos:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 73.6
|
||||||
|
width: 288.6
|
||||||
|
height: 411
|
||||||
|
m_ViewDataDictionary: {fileID: 0}
|
||||||
|
m_OverlayCanvas:
|
||||||
|
m_LastAppliedPresetName: Default
|
||||||
|
m_SaveData: []
|
||||||
|
m_SceneHierarchy:
|
||||||
|
m_TreeViewState:
|
||||||
|
scrollPos: {x: 0, y: 0}
|
||||||
|
m_SelectedIDs: ca5e0000
|
||||||
|
m_LastClickedID: 24266
|
||||||
|
m_ExpandedIDs: beeeffffa4f3ffffa8f3ffff2cfbffff2efbffffc65e0000ca5e0000dc5e0000
|
||||||
|
m_RenameOverlay:
|
||||||
|
m_UserAcceptedRename: 0
|
||||||
|
m_Name:
|
||||||
|
m_OriginalName:
|
||||||
|
m_EditFieldRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
m_UserData: 0
|
||||||
|
m_IsWaitingForDelay: 0
|
||||||
|
m_IsRenaming: 0
|
||||||
|
m_OriginalEventType: 11
|
||||||
|
m_IsRenamingFilename: 0
|
||||||
|
m_ClientGUIView: {fileID: 5}
|
||||||
|
m_SearchString:
|
||||||
|
m_ExpandedScenes: []
|
||||||
|
m_CurrenRootInstanceID: 0
|
||||||
|
m_LockTracker:
|
||||||
|
m_IsLocked: 0
|
||||||
|
m_CurrentSortingName: TransformSorting
|
||||||
|
m_WindowGUID: 4c969a2b90040154d917609493e03593
|
||||||
|
--- !u!114 &7
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name: GameView
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Children: []
|
||||||
|
m_Position:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 289.6
|
||||||
|
y: 0
|
||||||
|
width: 884.80005
|
||||||
|
height: 432
|
||||||
|
m_MinSize: {x: 202, y: 221}
|
||||||
|
m_MaxSize: {x: 4002, y: 4021}
|
||||||
|
m_ActualView: {fileID: 2}
|
||||||
|
m_Panes:
|
||||||
|
- {fileID: 8}
|
||||||
|
- {fileID: 2}
|
||||||
|
m_Selected: 1
|
||||||
|
m_LastSelected: 0
|
||||||
|
--- !u!114 &8
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12013, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MinSize: {x: 200, y: 200}
|
||||||
|
m_MaxSize: {x: 4000, y: 4000}
|
||||||
|
m_TitleContent:
|
||||||
|
m_Text: Scene
|
||||||
|
m_Image: {fileID: 8634526014445323508, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
|
m_Tooltip:
|
||||||
|
m_Pos:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 289.6
|
||||||
|
y: 73.6
|
||||||
|
width: 882.80005
|
||||||
|
height: 411
|
||||||
|
m_ViewDataDictionary: {fileID: 0}
|
||||||
|
m_OverlayCanvas:
|
||||||
|
m_LastAppliedPresetName: Default
|
||||||
|
m_SaveData:
|
||||||
|
- dockPosition: 0
|
||||||
|
containerId: overlay-toolbar__top
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 1
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: -100, y: -25.600006}
|
||||||
|
snapCorner: 3
|
||||||
|
id: Tool Settings
|
||||||
|
index: 0
|
||||||
|
layout: 1
|
||||||
|
- dockPosition: 0
|
||||||
|
containerId: overlay-toolbar__top
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 1
|
||||||
|
snapOffset: {x: -141, y: 149}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 1
|
||||||
|
id: unity-grid-and-snap-toolbar
|
||||||
|
index: 1
|
||||||
|
layout: 1
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-toolbar__top
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 1
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: unity-scene-view-toolbar
|
||||||
|
index: 0
|
||||||
|
layout: 1
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-toolbar__top
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 1
|
||||||
|
id: unity-search-toolbar
|
||||||
|
index: 1
|
||||||
|
layout: 1
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-toolbar__top
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Open Tile Palette
|
||||||
|
index: 2
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-toolbar__top
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Tilemap Focus
|
||||||
|
index: 3
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 0
|
||||||
|
containerId: overlay-container--left
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 1
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: unity-transform-toolbar
|
||||||
|
index: 0
|
||||||
|
layout: 2
|
||||||
|
- dockPosition: 0
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 1
|
||||||
|
snapOffset: {x: 67.5, y: 86}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Orientation
|
||||||
|
index: 0
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Light Settings
|
||||||
|
index: 0
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Camera
|
||||||
|
index: 1
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Cloth Constraints
|
||||||
|
index: 2
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Cloth Collisions
|
||||||
|
index: 3
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Navmesh Display
|
||||||
|
index: 4
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Agent Display
|
||||||
|
index: 5
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Obstacle Display
|
||||||
|
index: 6
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Occlusion Culling
|
||||||
|
index: 7
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Physics Debugger
|
||||||
|
index: 8
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Scene Visibility
|
||||||
|
index: 9
|
||||||
|
layout: 4
|
||||||
|
- dockPosition: 1
|
||||||
|
containerId: overlay-container--right
|
||||||
|
floating: 0
|
||||||
|
collapsed: 0
|
||||||
|
displayed: 0
|
||||||
|
snapOffset: {x: 0, y: 0}
|
||||||
|
snapOffsetDelta: {x: 0, y: 0}
|
||||||
|
snapCorner: 0
|
||||||
|
id: Scene View/Particles
|
||||||
|
index: 10
|
||||||
|
layout: 4
|
||||||
|
m_WindowGUID: cc27987af1a868c49b0894db9c0f5429
|
||||||
|
m_Gizmos: 1
|
||||||
|
m_OverrideSceneCullingMask: 6917529027641081856
|
||||||
|
m_SceneIsLit: 1
|
||||||
|
m_SceneLighting: 1
|
||||||
|
m_2DMode: 1
|
||||||
|
m_isRotationLocked: 0
|
||||||
|
m_PlayAudio: 0
|
||||||
|
m_AudioPlay: 0
|
||||||
|
m_Position:
|
||||||
|
m_Target: {x: 320.8325, y: 254.67792, z: -1.2795316}
|
||||||
|
speed: 2
|
||||||
|
m_Value: {x: 320.8325, y: 254.67792, z: -1.2795316}
|
||||||
|
m_RenderMode: 0
|
||||||
|
m_CameraMode:
|
||||||
|
drawMode: 0
|
||||||
|
name: Shaded
|
||||||
|
section: Shading Mode
|
||||||
|
m_ValidateTrueMetals: 0
|
||||||
|
m_DoValidateTrueMetals: 0
|
||||||
|
m_ExposureSliderValue: 0
|
||||||
|
m_SceneViewState:
|
||||||
|
m_AlwaysRefresh: 0
|
||||||
|
showFog: 1
|
||||||
|
showSkybox: 1
|
||||||
|
showFlares: 1
|
||||||
|
showImageEffects: 1
|
||||||
|
showParticleSystems: 1
|
||||||
|
showVisualEffectGraphs: 1
|
||||||
|
m_FxEnabled: 1
|
||||||
|
m_Grid:
|
||||||
|
xGrid:
|
||||||
|
m_Fade:
|
||||||
|
m_Target: 0
|
||||||
|
speed: 2
|
||||||
|
m_Value: 0
|
||||||
|
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
|
||||||
|
m_Pivot: {x: 0, y: 0, z: 0}
|
||||||
|
m_Size: {x: 0, y: 0}
|
||||||
|
yGrid:
|
||||||
|
m_Fade:
|
||||||
|
m_Target: 0
|
||||||
|
speed: 2
|
||||||
|
m_Value: 0
|
||||||
|
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
|
||||||
|
m_Pivot: {x: 0, y: 0, z: 0}
|
||||||
|
m_Size: {x: 1, y: 1}
|
||||||
|
zGrid:
|
||||||
|
m_Fade:
|
||||||
|
m_Target: 1
|
||||||
|
speed: 2
|
||||||
|
m_Value: 1
|
||||||
|
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
|
||||||
|
m_Pivot: {x: 0, y: 0, z: 0}
|
||||||
|
m_Size: {x: 1, y: 1}
|
||||||
|
m_ShowGrid: 1
|
||||||
|
m_GridAxis: 1
|
||||||
|
m_gridOpacity: 0.5
|
||||||
|
m_Rotation:
|
||||||
|
m_Target: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
speed: 2
|
||||||
|
m_Value: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_Size:
|
||||||
|
m_Target: 168.00757
|
||||||
|
speed: 2
|
||||||
|
m_Value: 168.00757
|
||||||
|
m_Ortho:
|
||||||
|
m_Target: 1
|
||||||
|
speed: 2
|
||||||
|
m_Value: 1
|
||||||
|
m_CameraSettings:
|
||||||
|
m_Speed: 1
|
||||||
|
m_SpeedNormalized: 0.5
|
||||||
|
m_SpeedMin: 0.001
|
||||||
|
m_SpeedMax: 2
|
||||||
|
m_EasingEnabled: 1
|
||||||
|
m_EasingDuration: 0.4
|
||||||
|
m_AccelerationEnabled: 1
|
||||||
|
m_FieldOfViewHorizontalOrVertical: 60
|
||||||
|
m_NearClip: 0.03
|
||||||
|
m_FarClip: 10000
|
||||||
|
m_DynamicClip: 1
|
||||||
|
m_OcclusionCulling: 0
|
||||||
|
m_LastSceneViewRotation: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
|
||||||
|
m_LastSceneViewOrtho: 0
|
||||||
|
m_ReplacementShader: {fileID: 0}
|
||||||
|
m_ReplacementString:
|
||||||
|
m_SceneVisActive: 1
|
||||||
|
m_LastLockedObject: {fileID: 0}
|
||||||
|
m_ViewIsLockedToObject: 0
|
||||||
|
--- !u!114 &9
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name: ConsoleWindow
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Children: []
|
||||||
|
m_Position:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 432
|
||||||
|
width: 1174.4
|
||||||
|
height: 298.8
|
||||||
|
m_MinSize: {x: 101, y: 121}
|
||||||
|
m_MaxSize: {x: 4001, y: 4021}
|
||||||
|
m_ActualView: {fileID: 11}
|
||||||
|
m_Panes:
|
||||||
|
- {fileID: 10}
|
||||||
|
- {fileID: 11}
|
||||||
|
m_Selected: 1
|
||||||
|
m_LastSelected: 0
|
||||||
|
--- !u!114 &10
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12014, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MinSize: {x: 230, y: 250}
|
||||||
|
m_MaxSize: {x: 10000, y: 10000}
|
||||||
|
m_TitleContent:
|
||||||
|
m_Text: Project
|
||||||
|
m_Image: {fileID: -5179483145760003458, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
|
m_Tooltip:
|
||||||
|
m_Pos:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 505.6
|
||||||
|
width: 1173.4
|
||||||
|
height: 277.8
|
||||||
|
m_ViewDataDictionary: {fileID: 0}
|
||||||
|
m_OverlayCanvas:
|
||||||
|
m_LastAppliedPresetName: Default
|
||||||
|
m_SaveData: []
|
||||||
|
m_SearchFilter:
|
||||||
|
m_NameFilter:
|
||||||
|
m_ClassNames: []
|
||||||
|
m_AssetLabels: []
|
||||||
|
m_AssetBundleNames: []
|
||||||
|
m_VersionControlStates: []
|
||||||
|
m_SoftLockControlStates: []
|
||||||
|
m_ReferencingInstanceIDs:
|
||||||
|
m_SceneHandles:
|
||||||
|
m_ShowAllHits: 0
|
||||||
|
m_SkipHidden: 0
|
||||||
|
m_SearchArea: 1
|
||||||
|
m_Folders:
|
||||||
|
- Assets/Scripts
|
||||||
|
m_Globs: []
|
||||||
|
m_OriginalText:
|
||||||
|
m_ViewMode: 1
|
||||||
|
m_StartGridSize: 64
|
||||||
|
m_LastFolders:
|
||||||
|
- Assets/Scripts
|
||||||
|
m_LastFoldersGridSize: -1
|
||||||
|
m_LastProjectPath: C:\Users\juliu\Desktop\UnityProjects
|
||||||
|
m_LockTracker:
|
||||||
|
m_IsLocked: 0
|
||||||
|
m_FolderTreeState:
|
||||||
|
scrollPos: {x: 0, y: 0}
|
||||||
|
m_SelectedIDs: ca5f0000
|
||||||
|
m_LastClickedID: 24522
|
||||||
|
m_ExpandedIDs: 00000000585f000000ca9a3bffffff7f
|
||||||
|
m_RenameOverlay:
|
||||||
|
m_UserAcceptedRename: 0
|
||||||
|
m_Name:
|
||||||
|
m_OriginalName:
|
||||||
|
m_EditFieldRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
m_UserData: 0
|
||||||
|
m_IsWaitingForDelay: 0
|
||||||
|
m_IsRenaming: 0
|
||||||
|
m_OriginalEventType: 11
|
||||||
|
m_IsRenamingFilename: 1
|
||||||
|
m_ClientGUIView: {fileID: 9}
|
||||||
|
m_SearchString:
|
||||||
|
m_CreateAssetUtility:
|
||||||
|
m_EndAction: {fileID: 0}
|
||||||
|
m_InstanceID: 0
|
||||||
|
m_Path:
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_ResourceFile:
|
||||||
|
m_AssetTreeState:
|
||||||
|
scrollPos: {x: 0, y: 0}
|
||||||
|
m_SelectedIDs:
|
||||||
|
m_LastClickedID: 0
|
||||||
|
m_ExpandedIDs: 00000000585f000000ca9a3bffffff7f
|
||||||
|
m_RenameOverlay:
|
||||||
|
m_UserAcceptedRename: 0
|
||||||
|
m_Name:
|
||||||
|
m_OriginalName:
|
||||||
|
m_EditFieldRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
m_UserData: 0
|
||||||
|
m_IsWaitingForDelay: 0
|
||||||
|
m_IsRenaming: 0
|
||||||
|
m_OriginalEventType: 11
|
||||||
|
m_IsRenamingFilename: 1
|
||||||
|
m_ClientGUIView: {fileID: 0}
|
||||||
|
m_SearchString:
|
||||||
|
m_CreateAssetUtility:
|
||||||
|
m_EndAction: {fileID: 0}
|
||||||
|
m_InstanceID: 0
|
||||||
|
m_Path:
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_ResourceFile:
|
||||||
|
m_ListAreaState:
|
||||||
|
m_SelectedInstanceIDs: 44780000
|
||||||
|
m_LastClickedInstanceID: 30788
|
||||||
|
m_HadKeyboardFocusLastEvent: 1
|
||||||
|
m_ExpandedInstanceIDs: c623000000000000
|
||||||
|
m_RenameOverlay:
|
||||||
|
m_UserAcceptedRename: 0
|
||||||
|
m_Name:
|
||||||
|
m_OriginalName:
|
||||||
|
m_EditFieldRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
m_UserData: 0
|
||||||
|
m_IsWaitingForDelay: 0
|
||||||
|
m_IsRenaming: 0
|
||||||
|
m_OriginalEventType: 11
|
||||||
|
m_IsRenamingFilename: 1
|
||||||
|
m_ClientGUIView: {fileID: 9}
|
||||||
|
m_CreateAssetUtility:
|
||||||
|
m_EndAction: {fileID: 0}
|
||||||
|
m_InstanceID: 0
|
||||||
|
m_Path:
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_ResourceFile:
|
||||||
|
m_NewAssetIndexInList: -1
|
||||||
|
m_ScrollPosition: {x: 0, y: 0}
|
||||||
|
m_GridSize: 64
|
||||||
|
m_SkipHiddenPackages: 0
|
||||||
|
m_DirectoriesAreaWidth: 207
|
||||||
|
--- !u!114 &11
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12003, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MinSize: {x: 100, y: 100}
|
||||||
|
m_MaxSize: {x: 4000, y: 4000}
|
||||||
|
m_TitleContent:
|
||||||
|
m_Text: Console
|
||||||
|
m_Image: {fileID: -4950941429401207979, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
|
m_Tooltip:
|
||||||
|
m_Pos:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 505.6
|
||||||
|
width: 1173.4
|
||||||
|
height: 277.8
|
||||||
|
m_ViewDataDictionary: {fileID: 0}
|
||||||
|
m_OverlayCanvas:
|
||||||
|
m_LastAppliedPresetName: Default
|
||||||
|
m_SaveData: []
|
||||||
|
--- !u!114 &12
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Children: []
|
||||||
|
m_Position:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 1174.4
|
||||||
|
y: 0
|
||||||
|
width: 361.59998
|
||||||
|
height: 730.8
|
||||||
|
m_MinSize: {x: 276, y: 71}
|
||||||
|
m_MaxSize: {x: 4001, y: 4021}
|
||||||
|
m_ActualView: {fileID: 13}
|
||||||
|
m_Panes:
|
||||||
|
- {fileID: 13}
|
||||||
|
m_Selected: 0
|
||||||
|
m_LastSelected: 0
|
||||||
|
--- !u!114 &13
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 52
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 1
|
||||||
|
m_Script: {fileID: 12019, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_MinSize: {x: 275, y: 50}
|
||||||
|
m_MaxSize: {x: 4000, y: 4000}
|
||||||
|
m_TitleContent:
|
||||||
|
m_Text: Inspector
|
||||||
|
m_Image: {fileID: -440750813802333266, guid: 0000000000000000d000000000000000, type: 0}
|
||||||
|
m_Tooltip:
|
||||||
|
m_Pos:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 1174.4
|
||||||
|
y: 73.6
|
||||||
|
width: 360.59998
|
||||||
|
height: 709.8
|
||||||
|
m_ViewDataDictionary: {fileID: 0}
|
||||||
|
m_OverlayCanvas:
|
||||||
|
m_LastAppliedPresetName: Default
|
||||||
|
m_SaveData: []
|
||||||
|
m_ObjectsLockedBeforeSerialization: []
|
||||||
|
m_InstanceIDsLockedBeforeSerialization:
|
||||||
|
m_PreviewResizer:
|
||||||
|
m_CachedPref: 160
|
||||||
|
m_ControlHash: -371814159
|
||||||
|
m_PrefName: Preview_InspectorPreview
|
||||||
|
m_LastInspectedObjectInstanceID: -1
|
||||||
|
m_LastVerticalScrollValue: 0
|
||||||
|
m_GlobalObjectId:
|
||||||
|
m_InspectorMode: 0
|
||||||
|
m_LockTracker:
|
||||||
|
m_IsLocked: 0
|
||||||
|
m_PreviewWindow: {fileID: 0}
|
||||||
Reference in New Issue
Block a user