Added PouchCapacity, reworked nested items feature

This commit is contained in:
tonyomendoza 2023-03-13 03:25:15 -07:00
parent d6b6fffe9a
commit 462de9c1cd
78 changed files with 466087 additions and 855 deletions

View File

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

View File

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

View File

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

View File

@ -0,0 +1,88 @@
using UnityEngine;
using UnityEngine.UI;
using UnityEditorInternal;
using UnityEditor.AnimatedValues;
namespace UnityEditor.UI
{
[CustomEditor(typeof(AbstractFlowLayoutGroup), true)]
[CanEditMultipleObjects]
/// <summary>
/// Custom Editor for the HorizontalOrVerticalLayoutGroupEditor Component.
/// Extend this class to write a custom editor for a component derived from HorizontalOrVerticalLayoutGroupEditor.
/// </summary>
public class AbstractFlowLayoutGroupEditor : Editor
{
SerializedProperty m_Padding;
SerializedProperty m_Spacing;
SerializedProperty m_LineSpacing;
SerializedProperty m_ChildAlignment;
SerializedProperty m_ChildControlWidth;
SerializedProperty m_ChildControlHeight;
SerializedProperty m_ChildScaleWidth;
SerializedProperty m_ChildScaleHeight;
SerializedProperty m_ReverseArrangement;
public AbstractFlowLayoutGroup Target => target as AbstractFlowLayoutGroup;
protected virtual void OnEnable()
{
m_Padding = serializedObject.FindProperty("m_Padding");
m_Spacing = serializedObject.FindProperty("m_Spacing");
m_LineSpacing = serializedObject.FindProperty("m_LineSpacing");
m_ChildAlignment = serializedObject.FindProperty("m_ChildAlignment");
m_ChildControlWidth = serializedObject.FindProperty("m_ChildControlWidth");
m_ChildControlHeight = serializedObject.FindProperty("m_ChildControlHeight");
m_ChildScaleWidth = serializedObject.FindProperty("m_ChildScaleWidth");
m_ChildScaleHeight = serializedObject.FindProperty("m_ChildScaleHeight");
m_ReverseArrangement = serializedObject.FindProperty("m_ReverseArrangement");
}
public override void OnInspectorGUI()
{
serializedObject.Update();
//EditorGUILayout.LabelField(string.Format("W: {0} | H: {1}", Target.GetWidth, Target.GetHeight));
EditorGUILayout.PropertyField(m_Padding, true);
EditorGUILayout.PropertyField(m_Spacing, true);
EditorGUILayout.PropertyField(m_LineSpacing, true);
EditorGUILayout.PropertyField(m_ChildAlignment, true);
EditorGUILayout.PropertyField(m_ReverseArrangement, true);
Rect rect = EditorGUILayout.GetControlRect();
rect = EditorGUI.PrefixLabel(rect, -1, EditorGUIUtility.TrTextContent("Control Child Size"));
rect.width = Mathf.Max(50, (rect.width - 4) / 3);
EditorGUIUtility.labelWidth = 50;
ToggleLeft(rect, m_ChildControlWidth, EditorGUIUtility.TrTextContent("Width"));
rect.x += rect.width + 2;
ToggleLeft(rect, m_ChildControlHeight, EditorGUIUtility.TrTextContent("Height"));
EditorGUIUtility.labelWidth = 0;
rect = EditorGUILayout.GetControlRect();
rect = EditorGUI.PrefixLabel(rect, -1, EditorGUIUtility.TrTextContent("Use Child Scale"));
rect.width = Mathf.Max(50, (rect.width - 4) / 3);
EditorGUIUtility.labelWidth = 50;
ToggleLeft(rect, m_ChildScaleWidth, EditorGUIUtility.TrTextContent("Width"));
rect.x += rect.width + 2;
ToggleLeft(rect, m_ChildScaleHeight, EditorGUIUtility.TrTextContent("Height"));
EditorGUIUtility.labelWidth = 0;
serializedObject.ApplyModifiedProperties();
}
void ToggleLeft(Rect position, SerializedProperty property, GUIContent label)
{
bool toggle = property.boolValue;
EditorGUI.BeginProperty(position, label, property);
EditorGUI.BeginChangeCheck();
int oldIndent = EditorGUI.indentLevel;
EditorGUI.indentLevel = 0;
toggle = EditorGUI.ToggleLeft(position, label, toggle);
EditorGUI.indentLevel = oldIndent;
if (EditorGUI.EndChangeCheck())
{
property.boolValue = property.hasMultipleDifferentValues ? true : !property.boolValue;
}
EditorGUI.EndProperty();
}
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: cb119beeb7574074d927412671ae9921 guid: 850dc41bf2d3a254e9abb38d1948625b
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 B

View File

@ -0,0 +1,92 @@
fileFormatVersion: 2
guid: c410a69da3a8d5e4ca4e47e943f6a2aa
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 B

View File

@ -0,0 +1,92 @@
fileFormatVersion: 2
guid: d0ecb523278caa946bf3c99838703539
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 311d1a63f8228c54e87c12fffac0d396
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,504 @@
using System.Collections.Generic;
namespace UnityEngine.UI
{
/// <summary>
/// Abstract base class for HorizontalLayoutGroup and VerticalLayoutGroup to generalize common functionality.
/// </summary>
///
[ExecuteAlways]
public abstract class AbstractFlowLayoutGroup : LayoutGroup
{
protected override void Awake()
{
base.Awake();
LayoutRebuilder.ForceRebuildLayoutImmediate(rectTransform);
}
[SerializeField] protected float m_Spacing = 0;
/// <summary>
/// The spacing to use between layout elements in the layout group.
/// </summary>
public float spacing { get { return m_Spacing; } set { SetProperty(ref m_Spacing, value); } }
[SerializeField] protected float m_LineSpacing = 0;
/// <summary>
/// The spacing to use between layout elements in the layout group.
/// </summary>
public float lineSpacing { get { return m_LineSpacing; } set { SetProperty(ref m_LineSpacing, value); } }
public virtual Vector2 Spacing => new Vector2(spacing, lineSpacing);
[SerializeField] protected bool m_ChildControlWidth = true;
/// <summary>
/// Returns true if the Layout Group controls the widths of its children. Returns false if children control their own widths.
/// </summary>
/// <remarks>
/// If set to false, the layout group will only affect the positions of the children while leaving the widths untouched. The widths of the children can be set via the respective RectTransforms in this case.
///
/// If set to true, the widths of the children are automatically driven by the layout group according to their respective minimum, preferred, and flexible widths. This is useful if the widths of the children should change depending on how much space is available.In this case the width of each child cannot be set manually in the RectTransform, but the minimum, preferred and flexible width for each child can be controlled by adding a LayoutElement component to it.
/// </remarks>
public bool childControlWidth { get { return m_ChildControlWidth; } set { SetProperty(ref m_ChildControlWidth, value); } }
[SerializeField] protected bool m_ChildControlHeight = true;
/// <summary>
/// Returns true if the Layout Group controls the heights of its children. Returns false if children control their own heights.
/// </summary>
/// <remarks>
/// If set to false, the layout group will only affect the positions of the children while leaving the heights untouched. The heights of the children can be set via the respective RectTransforms in this case.
///
/// If set to true, the heights of the children are automatically driven by the layout group according to their respective minimum, preferred, and flexible heights. This is useful if the heights of the children should change depending on how much space is available.In this case the height of each child cannot be set manually in the RectTransform, but the minimum, preferred and flexible height for each child can be controlled by adding a LayoutElement component to it.
/// </remarks>
public bool childControlHeight { get { return m_ChildControlHeight; } set { SetProperty(ref m_ChildControlHeight, value); } }
[SerializeField] protected bool m_ChildScaleWidth = false;
/// <summary>
/// Whether to use the x scale of each child when calculating its width.
/// </summary>
public bool childScaleWidth { get { return m_ChildScaleWidth; } set { SetProperty(ref m_ChildScaleWidth, value); } }
[SerializeField] protected bool m_ChildScaleHeight = false;
/// <summary>
/// Whether to use the y scale of each child when calculating its height.
/// </summary>
public bool childScaleHeight { get { return m_ChildScaleHeight; } set { SetProperty(ref m_ChildScaleHeight, value); } }
/// <summary>
/// Whether the order of children objects should be sorted in reverse.
/// </summary>
/// <remarks>
/// If False the first child object will be positioned first.
/// If True the last child object will be positioned first.
/// </remarks>
public bool reverseArrangement { get { return m_ReverseArrangement; } set { SetProperty(ref m_ReverseArrangement, value); } }
[SerializeField] protected bool m_ReverseArrangement = false;
/// <summary>
/// Calculate the layout element properties for this layout element along the given axis.
/// </summary>
/// <param name="axis">The axis to calculate for. 0 is horizontal and 1 is vertical.</param>
/// <param name="isVertical">Is this group a vertical group?</param>
protected void CalcAlongAxis(int axis, bool isVertical)
{
float size = rectTransform.rect.size[axis];
float innerSize = size - (axis == 0 ? padding.horizontal : padding.vertical);
float combinedPadding = (axis == 0 ? padding.horizontal : padding.vertical);
bool controlSize = (axis == 0 ? m_ChildControlWidth : m_ChildControlHeight);
bool useScale = (axis == 0 ? m_ChildScaleWidth : m_ChildScaleHeight);
float totalMin = combinedPadding;
float totalPreferred = combinedPadding;
float totalFlexible = 0;
bool alongOtherAxis = (isVertical ^ (axis == 1));
var rectChildrenCount = rectChildren.Count;
int otherAxis = axis == 0 ? 1 : 0;
float otherSize = rectTransform.rect.size[otherAxis];
float otherInnerSize = otherSize - (otherAxis == 0 ? padding.horizontal : padding.vertical);
bool useScaleOtherAxis = (otherAxis == 0 ? m_ChildScaleWidth : m_ChildScaleHeight);
int rowIndex = 0;
float currentRowLength = 0;
float rowOffset = 0;
float rowSize = 0;
int startIndex = m_ReverseArrangement ? rectChildren.Count - 1 : 0;
int endIndex = m_ReverseArrangement ? 0 : rectChildren.Count;
int increment = m_ReverseArrangement ? -1 : 1;
for (int i = startIndex; m_ReverseArrangement ? i >= endIndex : i < endIndex; i += increment)
{
RectTransform child = rectChildren[i];
float min, preferred, flexible;
float vmin, vpreferred, vflexible;
GetChildSizes(child, axis, controlSize, false, out min, out preferred, out flexible);
GetChildSizes(child, otherAxis, controlSize, false, out vmin, out vpreferred, out vflexible);
if (useScale)
{
float scaleFactor = child.localScale[axis];
min *= scaleFactor;
preferred *= scaleFactor;
flexible *= scaleFactor;
}
// 0 = otherAxis
// 1 = axis
if (alongOtherAxis)
{
totalMin = Mathf.Max(min + combinedPadding, totalMin);
totalPreferred = Mathf.Max(preferred + combinedPadding, totalPreferred);
totalFlexible = Mathf.Max(flexible, totalFlexible);
currentRowLength += child.sizeDelta[otherAxis] * (useScaleOtherAxis ? child.localScale[otherAxis] : 1f);
{
if (currentRowLength > otherInnerSize)
{
rowIndex++;
rowOffset += rowSize;
rowSize = child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f);
currentRowLength = child.sizeDelta[otherAxis] * (useScaleOtherAxis ? child.localScale[otherAxis] : 1f);
}
else
{
rowSize = Mathf.Max(child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f), rowSize);
}
currentRowLength += spacing;
}
}
else
{
totalMin += min + spacing;
totalPreferred += preferred + spacing;
// Increment flexible size with element's flexible size.
totalFlexible += flexible;
}
}
if (!alongOtherAxis && rectChildren.Count > 0)
{
totalMin -= spacing;
totalPreferred -= spacing;
}
totalPreferred = Mathf.Max(totalMin, totalPreferred);
if (alongOtherAxis)
{
rowOffset += rowSize;
totalMin = totalPreferred;
totalPreferred = rowOffset + lineSpacing * rowIndex + combinedPadding;
}
if (!alongOtherAxis)
SetLayoutInputForAxis(totalFlexible, totalFlexible, totalFlexible, axis);
else
SetLayoutInputForAxis(totalMin, totalPreferred, totalFlexible, axis);
}
public float GetWidth => rectTransform.rect.width - padding.horizontal;
public float GetHeight => rectTransform.rect.height;
/// <summary>
/// Set the positions and sizes of the child layout elements for the given axis.
/// </summary>
/// <param name="axis">The axis to handle. 0 is horizontal and 1 is vertical.</param>
/// <param name="isVertical">Is this group a vertical group?</param>
protected void SetChildrenAlongAxis(int axis, bool isVertical)
{
float size = rectTransform.rect.size[axis];
float innerSize = size - (axis == 0 ? padding.horizontal : padding.vertical);
bool controlSize = (axis == 0 ? m_ChildControlWidth : m_ChildControlHeight);
bool useScale = (axis == 0 ? m_ChildScaleWidth : m_ChildScaleHeight);
float alignmentOnAxis = GetAlignmentOnAxis(axis);
bool alongOtherAxis = (isVertical ^ (axis == 1));
int startIndex = m_ReverseArrangement ? rectChildren.Count - 1 : 0;
int endIndex = m_ReverseArrangement ? 0 : rectChildren.Count;
int increment = m_ReverseArrangement ? -1 : 1;
int otherAxis = axis == 0 ? 1 : 0;
bool useScaleOtherAxis = (otherAxis == 0 ? m_ChildScaleWidth : m_ChildScaleHeight);
float otherSize = rectTransform.rect.size[otherAxis];
float otherInnerSize = otherSize - (otherAxis == 0 ? padding.horizontal : padding.vertical);
// 0 = otherAxis
// 1 = axis
if (alongOtherAxis)
{
float currentRowLength = 0;
int rowIndex = 0;
float rowSize = 0;
float rowOffset = 0;
float CalcOtherAxisOffset(float delta)
{
// Horizontal
if (axis == 0)
{
// Left
if (childAlignment == TextAnchor.UpperLeft || childAlignment == TextAnchor.MiddleLeft || childAlignment == TextAnchor.LowerLeft)
return 0;
// Center
else if (childAlignment == TextAnchor.UpperCenter || childAlignment == TextAnchor.MiddleCenter || childAlignment == TextAnchor.LowerCenter)
return delta / 2f;
// Right
else
return delta;
}
// Vertical
else
{
// Top
if (childAlignment == TextAnchor.UpperLeft || childAlignment == TextAnchor.UpperCenter || childAlignment == TextAnchor.UpperRight)
return 0;
// Middle
else if (childAlignment == TextAnchor.MiddleLeft || childAlignment == TextAnchor.MiddleCenter || childAlignment == TextAnchor.MiddleRight)
return delta / 2f;
// Bottom
else
return delta;
}
}
for (int i = startIndex; m_ReverseArrangement ? i >= endIndex : i < endIndex; i += increment)
{
RectTransform child = rectChildren[i];
float min, preferred, flexible;
float hMin, hPreferred, hFlexible;
GetChildSizes(child, axis, controlSize, false, out min, out preferred, out flexible);
GetChildSizes(child, otherAxis, controlSize, false, out hMin, out hPreferred, out hFlexible);
float scaleFactor = useScale ? child.localScale[axis] : 1f;
float requiredSpace = Mathf.Clamp(innerSize, min, flexible > 0 ? size : preferred);
float startOffset = size - GetTotalPreferredSize(axis);
startOffset = CalcOtherAxisOffset(startOffset);
startOffset += axis == 0 ? padding.left : padding.top;
currentRowLength += child.sizeDelta[otherAxis] * (useScaleOtherAxis ? child.localScale[otherAxis] : 1f);
{
if (currentRowLength > otherInnerSize)
{
rowIndex++;
rowOffset += rowSize;
rowSize = child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f);
currentRowLength = child.sizeDelta[otherAxis] * (useScaleOtherAxis ? child.localScale[otherAxis] : 1f);
}
else
{
rowSize = Mathf.Max(child.sizeDelta[axis] * (useScaleOtherAxis ? child.localScale[axis] : 1f), rowSize);
}
currentRowLength += spacing;
}
float rowPos = rowOffset + /*rowSize * rowIndex*/ +lineSpacing * (rowIndex);
if (controlSize)
{
SetChildAlongAxisWithScale(child, axis, startOffset + rowPos, requiredSpace, scaleFactor);
}
else
{
float offsetInCell = (requiredSpace - child.sizeDelta[axis]) * alignmentOnAxis;
SetChildAlongAxisWithScale(child, axis, startOffset + offsetInCell + rowPos, scaleFactor);
}
}
}
else
{
float pos = (axis == 0 ? padding.left : padding.top);
float itemFlexibleMultiplier = 0;
float surplusSpace = size - GetTotalPreferredSize(axis);
float minMaxLerp = 0;
if (GetTotalMinSize(axis) != GetTotalPreferredSize(axis))
minMaxLerp = Mathf.Clamp01((size - GetTotalMinSize(axis)) / (GetTotalPreferredSize(axis) - GetTotalMinSize(axis)));
// Get lengths for each row to know how much to offset them by when ordering them.
List<List<RectTransform>> DivideIntoRows()
{
int _rowIndex = 0;
float _currentRowLength = 0;
List<List<RectTransform>> _rows = new List<List<RectTransform>>();
_rows.Add(new List<RectTransform>());
for (int i = startIndex; m_ReverseArrangement ? i >= endIndex : i < endIndex; i += increment)
{
RectTransform child = rectChildren[i];
float min, preferred, flexible;
GetChildSizes(child, axis, controlSize, false, out min, out preferred, out flexible);
{
min = preferred;
_currentRowLength += child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f);
if (_currentRowLength > innerSize)
{
//Debug.Log("We are exceeding!!! With length " + currentRowLength);
_rowIndex++;
_rows.Add(new List<RectTransform>());
_currentRowLength = child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f);
//pos = (axis == 0 ? padding.left : padding.top);
}
else
{
//currentRowLength += spacing;
}
_rows[_rowIndex].Add(child);
_currentRowLength += spacing;
}
}
return _rows;
}
List<List<RectTransform>> rows = DivideIntoRows();
float CalcRowSize(int index)
{
var row = rows[index];
float _size = 0;
foreach (var child in row)
{
_size += child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f);
_size += spacing;
}
if (row.Count > 0)
_size -= spacing;
return _size;
}
float CalcRowOffset(int index)
{
float rowSize = CalcRowSize(index);
float delta = innerSize - rowSize;
// Horizontal
if (axis == 0)
{
if (childAlignment == TextAnchor.UpperLeft || childAlignment == TextAnchor.MiddleLeft || childAlignment == TextAnchor.LowerLeft)
return 0;
else if (childAlignment == TextAnchor.UpperCenter || childAlignment == TextAnchor.MiddleCenter || childAlignment == TextAnchor.LowerCenter)
return delta / 2f;
else
return delta;
}
// Vertical
else
{
if (childAlignment == TextAnchor.UpperLeft || childAlignment == TextAnchor.UpperCenter || childAlignment == TextAnchor.UpperRight)
return 0;
else if (childAlignment == TextAnchor.MiddleLeft || childAlignment == TextAnchor.MiddleCenter || childAlignment == TextAnchor.MiddleRight)
return delta / 2f;
else
return delta;
}
}
int rowIndex = 0;
float currentRowLength = 0;
// 0 = axis
// 1 = otherAxis
for (int i = startIndex; m_ReverseArrangement ? i >= endIndex : i < endIndex; i += increment)
{
RectTransform child = rectChildren[i];
float min, preferred, flexible;
GetChildSizes(child, axis, controlSize, false, out min, out preferred, out flexible);
{
min = preferred;
currentRowLength += child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f);
if (currentRowLength > innerSize)
{
rowIndex++;
currentRowLength = child.sizeDelta[axis] * (useScale ? child.localScale[axis] : 1f);
pos = (axis == 0 ? padding.left : padding.top);
}
currentRowLength += spacing;
}
float scaleFactor = useScale ? child.localScale[axis] : 1f;
float childSize = Mathf.Lerp(min, preferred, minMaxLerp);
childSize += flexible * itemFlexibleMultiplier;
float posOffset = CalcRowOffset(rowIndex);
if (controlSize)
{
SetChildAlongAxisWithScale(child, axis, pos + posOffset, childSize, scaleFactor);
}
else
{
SetChildAlongAxisWithScale(child, axis, pos + posOffset, scaleFactor);
}
pos += childSize * scaleFactor + spacing;
}
}
}
private void GetChildSizes(RectTransform child, int axis, bool controlSize, bool childForceExpand,
out float min, out float preferred, out float flexible)
{
if (!controlSize)
{
min = child.sizeDelta[axis];
preferred = min;
flexible = 0;
}
else
{
min = LayoutUtility.GetMinSize(child, axis);
preferred = LayoutUtility.GetPreferredSize(child, axis);
flexible = LayoutUtility.GetFlexibleSize(child, axis);
}
}
#if UNITY_EDITOR
protected override void Reset()
{
base.Reset();
// For new added components we want these to be set to false,
// so that the user's sizes won't be overwritten before they
// have a chance to turn these settings off.
// However, for existing components that were added before this
// feature was introduced, we want it to be on be default for
// backwardds compatibility.
// Hence their default value is on, but we set to off in reset.
m_ChildControlWidth = false;
m_ChildControlHeight = false;
}
private int m_Capacity = 10;
private Vector2[] m_Sizes = new Vector2[10];
protected virtual void Update()
{
if (Application.isPlaying)
return;
int count = transform.childCount;
if (count > m_Capacity)
{
if (count > m_Capacity * 2)
m_Capacity = count;
else
m_Capacity *= 2;
m_Sizes = new Vector2[m_Capacity];
}
// If children size change in editor, update layout (case 945680 - Child GameObjects in a Horizontal/Vertical Layout Group don't display their correct position in the Editor)
bool dirty = false;
for (int i = 0; i < count; i++)
{
RectTransform t = transform.GetChild(i) as RectTransform;
if (t != null && t.sizeDelta != m_Sizes[i])
{
dirty = true;
m_Sizes[i] = t.sizeDelta;
}
}
if (dirty)
LayoutRebuilder.MarkLayoutForRebuild(transform as RectTransform);
}
#endif
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: a6349c95e0055a64db6010b6bfaa9971 guid: 9de49edd6da20c747a3b1f4b5516fcbd
MonoImporter: MonoImporter:
externalObjects: {} externalObjects: {}
serializedVersion: 2 serializedVersion: 2

View File

@ -0,0 +1,49 @@
namespace UnityEngine.UI
{
[AddComponentMenu("Layout/Horizontal Flow Layout Group", 154)]
/// <summary>
/// Layout class for arranging child elements side by side.
/// </summary>
public class HorizontalFlowLayoutGroup : AbstractFlowLayoutGroup
{
protected HorizontalFlowLayoutGroup()
{ }
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void CalculateLayoutInputHorizontal()
{
base.CalculateLayoutInputHorizontal();
CalcAlongAxis(0, false);
CalcAlongAxis(1, false); // new
}
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void CalculateLayoutInputVertical()
{
CalcAlongAxis(0, false); // new
CalcAlongAxis(1, false);
}
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void SetLayoutHorizontal()
{
SetChildrenAlongAxis(0, false);
SetChildrenAlongAxis(1, false); // new
}
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void SetLayoutVertical()
{
SetChildrenAlongAxis(0, false); // new
SetChildrenAlongAxis(1, false);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ca4a8ea6790b39a4e953947258d8bca2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {fileID: 2800000, guid: c410a69da3a8d5e4ca4e47e943f6a2aa, type: 3}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,51 @@
namespace UnityEngine.UI
{
[AddComponentMenu("Layout/Vertical Flow Layout Group", 155)]
/// <summary>
/// Layout class for arranging child elements side by side.
/// </summary>
public class VerticalFlowLayoutGroup : AbstractFlowLayoutGroup
{
protected VerticalFlowLayoutGroup()
{ }
public override Vector2 Spacing => new Vector2(lineSpacing, spacing);
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void CalculateLayoutInputHorizontal()
{
base.CalculateLayoutInputHorizontal();
CalcAlongAxis(1, true);
CalcAlongAxis(0, true);
}
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void CalculateLayoutInputVertical()
{
CalcAlongAxis(1, true);
CalcAlongAxis(0, true);
}
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void SetLayoutHorizontal()
{
SetChildrenAlongAxis(1, true);
SetChildrenAlongAxis(0, true);
}
/// <summary>
/// Called by the layout system. Also see ILayoutElement
/// </summary>
public override void SetLayoutVertical()
{
SetChildrenAlongAxis(1, true);
SetChildrenAlongAxis(0, true);
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c10da46532bb31f4293369ffb544f997
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {fileID: 2800000, guid: d0ecb523278caa946bf3c99838703539, type: 3}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

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

View File

@ -0,0 +1,280 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2400204377406634494
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3694111179103484087}
- component: {fileID: 6286429247704303112}
- component: {fileID: 1452815654762144918}
m_Layer: 0
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &3694111179103484087
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2400204377406634494}
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_Children: []
m_Father: {fileID: 3654621849723798892}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &6286429247704303112
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2400204377406634494}
m_CullTransparentMesh: 1
--- !u!114 &1452815654762144918
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2400204377406634494}
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_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Button
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, 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: 18
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
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: 1
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!1 &6490962454689279441
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3654621849723798892}
- component: {fileID: 7745640540766682067}
- component: {fileID: 1324477571054438928}
- component: {fileID: 6528280700265324924}
- component: {fileID: 1589506485812248614}
m_Layer: 0
m_Name: Button - Simple
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &3654621849723798892
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6490962454689279441}
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_Children:
- {fileID: 3694111179103484087}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 84.119995, y: 98.21}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7745640540766682067
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6490962454689279441}
m_CullTransparentMesh: 1
--- !u!114 &1324477571054438928
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6490962454689279441}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 728e1ac9322e06d4fa269c7bd59505d0, type: 3}
m_Type: 1
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &6528280700265324924
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6490962454689279441}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 16
m_Right: 16
m_Top: 8
m_Bottom: 8
m_ChildAlignment: 0
m_Spacing: 0
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 1
m_ChildControlWidth: 1
m_ChildControlHeight: 1
m_ChildScaleWidth: 1
m_ChildScaleHeight: 1
--- !u!114 &1589506485812248614
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6490962454689279441}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 1324477571054438928}
m_OnClick:
m_PersistentCalls:
m_Calls: []

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2ea2a5bce8217454ab60492ebc069afb
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8079c8a7229c662408807a4a0916ed0e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 53d88406a6177c148b195c14406ecea0
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 390d204644e9ef84598802b98680e379
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 79fdef30463630548b7843dcbeab65c2
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 954c5ca14dc704945b71b4f6344f42c5
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8e29205494c306c4a80d80eba973fbb6
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 12a912569116eb647ac7a2e2e61a6f82
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f8a9f606d2bc3e446ada0489a452585c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3ed390dca20e9934daf7e7cea65dc1db
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 012cdd3b524374d47b9608a993c5cb61
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

@ -0,0 +1,96 @@
fileFormatVersion: 2
guid: 6f78d2daffe18b04aa9a9b50a85d380b
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 64, y: 64, z: 64, w: 64}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 1
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -0,0 +1,98 @@
fileFormatVersion: 2
guid: 3cea87144361b9f4d949a2992153a7b7
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 8, y: 8, z: 8, w: 8}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 1537655665
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,98 @@
fileFormatVersion: 2
guid: 728e1ac9322e06d4fa269c7bd59505d0
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 16, y: 16, z: 16, w: 16}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 1
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 1537655665
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -0,0 +1,123 @@
fileFormatVersion: 2
guid: e2ff6f21032176e4b90b7e7e0a53efe8
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMasterTextureLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 0
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 32, y: 32, z: 32, w: 32}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
cookieLightType: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Server
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -584,7 +584,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &4130681417131382466 --- !u!224 &4130681417131382466
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -601,9 +601,9 @@ RectTransform:
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 20} m_SizeDelta: {x: -17, y: 20}
m_Pivot: {x: 0, y: 0} m_Pivot: {x: 0, y: 0}
--- !u!222 &7685467996873910835 --- !u!222 &7685467996873910835
CanvasRenderer: CanvasRenderer:
@ -684,8 +684,8 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 1165938063523323413} m_TargetGraphic: {fileID: 1165938063523323413}
m_HandleRect: {fileID: 2233503621217788993} m_HandleRect: {fileID: 2233503621217788993}
m_Direction: 0 m_Direction: 0
m_Value: -0.0000011497991 m_Value: 1
m_Size: 0.4778689 m_Size: 1
m_NumberOfSteps: 0 m_NumberOfSteps: 0
m_OnValueChanged: m_OnValueChanged:
m_PersistentCalls: m_PersistentCalls:
@ -726,6 +726,82 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: -20, y: -20} m_SizeDelta: {x: -20, y: -20}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1110634826349449630
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4508597830310062939}
- component: {fileID: 1077155401831525960}
- component: {fileID: 7827081380851486467}
m_Layer: 5
m_Name: Loot / PlayerStats
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4508597830310062939
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1110634826349449630}
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_Children:
- {fileID: 2770326606164476904}
- {fileID: 2770326606043385230}
m_Father: {fileID: 2770326605625768898}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 784.5833, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1077155401831525960
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1110634826349449630}
m_CullTransparentMesh: 0
--- !u!114 &7827081380851486467
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1110634826349449630}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &1709790406123224671 --- !u!1 &1709790406123224671
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -760,7 +836,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 281.5, y: 0}
m_SizeDelta: {x: 20, y: 20} m_SizeDelta: {x: 20, y: 20}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &9216694238769870263 --- !u!222 &9216694238769870263
@ -811,7 +887,7 @@ GameObject:
- component: {fileID: 1751467116486688318} - component: {fileID: 1751467116486688318}
- component: {fileID: 2027143570153659392} - component: {fileID: 2027143570153659392}
- component: {fileID: 6677943319919608116} - component: {fileID: 6677943319919608116}
- component: {fileID: 7264834851934661000} - component: {fileID: 1024558551205503332}
m_Layer: 5 m_Layer: 5
m_Name: Scroll View m_Name: Scroll View
m_TagString: Untagged m_TagString: Untagged
@ -878,7 +954,7 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!114 &7264834851934661000 --- !u!114 &1024558551205503332
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@ -887,24 +963,24 @@ MonoBehaviour:
m_GameObject: {fileID: 2108268662488080482} m_GameObject: {fileID: 2108268662488080482}
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3} m_Script: {fileID: 11500000, guid: fe67e999899ad8e4fb0ef021ae979b83, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Content: {fileID: 2770326606141421692} m_Content: {fileID: 2770326606141421692}
m_Horizontal: 1 m_Horizontal: 0
m_Vertical: 1 m_Vertical: 1
m_MovementType: 1 m_MovementType: 1
m_Elasticity: 0.1 m_Elasticity: 0.1
m_Inertia: 1 m_Inertia: 0
m_DecelerationRate: 0.135 m_DecelerationRate: 0.135
m_ScrollSensitivity: 1 m_ScrollSensitivity: 1
m_Viewport: {fileID: 4086661973484093150} m_Viewport: {fileID: 4086661973484093150}
m_HorizontalScrollbar: {fileID: 51727583602948897} m_HorizontalScrollbar: {fileID: 51727583602948897}
m_VerticalScrollbar: {fileID: 3684466523276116297} m_VerticalScrollbar: {fileID: 3684466523276116297}
m_HorizontalScrollbarVisibility: 2 m_HorizontalScrollbarVisibility: 0
m_VerticalScrollbarVisibility: 2 m_VerticalScrollbarVisibility: 0
m_HorizontalScrollbarSpacing: -3 m_HorizontalScrollbarSpacing: 0
m_VerticalScrollbarSpacing: -3 m_VerticalScrollbarSpacing: 0
m_OnValueChanged: m_OnValueChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
@ -1128,139 +1204,6 @@ MonoBehaviour:
CellInUse: 0 CellInUse: 0
imageScale: 1 imageScale: 1
StackItemsOnSlot: 0 StackItemsOnSlot: 0
--- !u!1 &2770326604711117545
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2770326604711117546}
- component: {fileID: 2770326604711117548}
- component: {fileID: 2770326604711117547}
m_Layer: 2
m_Name: StackCount
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2770326604711117546
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326604711117545}
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_Children: []
m_Father: {fileID: 2770326605232467539}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -15, y: 10}
m_SizeDelta: {x: -15, y: 30}
m_Pivot: {x: 1, y: 0}
--- !u!222 &2770326604711117548
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326604711117545}
m_CullTransparentMesh: 0
--- !u!114 &2770326604711117547
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326604711117545}
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_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 0/0
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, 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: 26.85
m_fontSizeBase: 24
m_fontWeight: 400
m_enableAutoSizing: 1
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 4
m_VerticalAlignment: 1024
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: 1
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!1 &2770326604715695280 --- !u!1 &2770326604715695280
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1776,10 +1719,10 @@ RectTransform:
m_Father: {fileID: 2770326606141421692} m_Father: {fileID: 2770326606141421692}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 296.4995, y: -667.5}
m_SizeDelta: {x: 1180, y: 175} m_SizeDelta: {x: 572.999, y: 175}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2770326604746266598 --- !u!222 &2770326604746266598
CanvasRenderer: CanvasRenderer:
@ -2904,15 +2847,13 @@ RectTransform:
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 2770326606469580875}
- {fileID: 2770326605807543573} - {fileID: 2770326605807543573}
- {fileID: 2770326606043385230}
m_Father: {fileID: 2770326606707198991} m_Father: {fileID: 2770326606707198991}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: -0.00036621094}
m_SizeDelta: {x: 0, y: 2250} m_SizeDelta: {x: 0, y: 2250}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!114 &2770326604978625766 --- !u!114 &2770326604978625766
@ -4331,42 +4272,6 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!1 &2770326605232467538
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2770326605232467539}
m_Layer: 2
m_Name: Total Pouches Text Container
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2770326605232467539
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326605232467538}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.59264994, y: 0.59264994, z: 0.59264994}
m_Children:
- {fileID: 2770326604711117546}
m_Father: {fileID: 2770326606150301029}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 75, y: 75}
m_Pivot: {x: 1, y: 0}
--- !u!1 &2770326605234795825 --- !u!1 &2770326605234795825
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -7275,7 +7180,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1200, y: 275} m_SizeDelta: {x: 572.9989, y: 350}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &2770326605600926437 --- !u!222 &2770326605600926437
CanvasRenderer: CanvasRenderer:
@ -7670,7 +7575,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 2770326605349688553} - {fileID: 2770326605349688553}
- {fileID: 2770326606164476904} - {fileID: 4508597830310062939}
m_Father: {fileID: 2770326605092142852} m_Father: {fileID: 2770326605092142852}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -8547,10 +8452,10 @@ RectTransform:
m_Father: {fileID: 2770326606141421692} m_Father: {fileID: 2770326606141421692}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 10, y: 0}
m_SizeDelta: {x: 1200, y: 275} m_SizeDelta: {x: 572.999, y: 350}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &2770326605768550994 --- !u!222 &2770326605768550994
CanvasRenderer: CanvasRenderer:
@ -8729,7 +8634,7 @@ MonoBehaviour:
inventoryUI: {fileID: 2770326605623600444} inventoryUI: {fileID: 2770326605623600444}
playerUI: {fileID: 2770326605036912740} playerUI: {fileID: 2770326605036912740}
InventoryMenuUI: {fileID: 2770326606319085670} InventoryMenuUI: {fileID: 2770326606319085670}
LootMenuUI: {fileID: 2770326605807543572} LootMenuUI: {fileID: 2770326606164476903}
StatsMenuUI: {fileID: 2770326606043385229} StatsMenuUI: {fileID: 2770326606043385229}
rotateKey: 114 rotateKey: 114
menuKey: 9 menuKey: 9
@ -9153,7 +9058,7 @@ RectTransform:
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children: []
m_Father: {fileID: 2770326604978625765} m_Father: {fileID: 2770326604978625765}
m_RootOrder: 1 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
@ -9457,7 +9362,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326605851189360} m_GameObject: {fileID: 2770326605851189360}
m_Enabled: 1 m_Enabled: 0
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a6349c95e0055a64db6010b6bfaa9971, type: 3} m_Script: {fileID: 11500000, guid: a6349c95e0055a64db6010b6bfaa9971, type: 3}
m_Name: m_Name:
@ -10583,10 +10488,10 @@ RectTransform:
m_Father: {fileID: 2770326606141421692} m_Father: {fileID: 2770326606141421692}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 296.4995, y: -410}
m_SizeDelta: {x: 1180, y: 100} m_SizeDelta: {x: 572.999, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2770326606002374602 --- !u!222 &2770326606002374602
CanvasRenderer: CanvasRenderer:
@ -10752,7 +10657,7 @@ GameObject:
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 0
--- !u!224 &2770326606043385230 --- !u!224 &2770326606043385230
RectTransform: RectTransform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -10760,18 +10665,18 @@ RectTransform:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606043385229} m_GameObject: {fileID: 2770326606043385229}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children:
- {fileID: 1877044253} - {fileID: 1877044253}
- {fileID: 284715784} - {fileID: 284715784}
m_Father: {fileID: 2770326604978625765} m_Father: {fileID: 4508597830310062939}
m_RootOrder: 2 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: -2500} m_AnchoredPosition: {x: 784.583, y: -2500.0005}
m_SizeDelta: {x: 767.58325, y: 762.71313} m_SizeDelta: {x: 767.58325, y: 762.71313}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &2770326606043385264 --- !u!222 &2770326606043385264
@ -11379,8 +11284,8 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0.0008300157, y: -0.0009645254} m_AnchoredPosition: {x: -0.00048828125, y: -0.0010553089}
m_SizeDelta: {x: 1220, y: 1200} m_SizeDelta: {x: 582.99915, y: 1200}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!114 &2770326606141421693 --- !u!114 &2770326606141421693
MonoBehaviour: MonoBehaviour:
@ -11710,8 +11615,8 @@ GameObject:
- component: {fileID: 2770326606164476904} - component: {fileID: 2770326606164476904}
- component: {fileID: 2770326606164476908} - component: {fileID: 2770326606164476908}
- component: {fileID: 2770326606164476907} - component: {fileID: 2770326606164476907}
- component: {fileID: 2770326606164476906}
- component: {fileID: 2770326606164476905} - component: {fileID: 2770326606164476905}
- component: {fileID: 3305621909771891433}
m_Layer: 5 m_Layer: 5
m_Name: Loot (Scroll View) m_Name: Loot (Scroll View)
m_TagString: Untagged m_TagString: Untagged
@ -11733,14 +11638,14 @@ RectTransform:
- {fileID: 2770326606707198991} - {fileID: 2770326606707198991}
- {fileID: 2770326605669370231} - {fileID: 2770326605669370231}
- {fileID: 2770326606805154119} - {fileID: 2770326606805154119}
m_Father: {fileID: 2770326605625768898} m_Father: {fileID: 4508597830310062939}
m_RootOrder: 1 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 784.58325, y: 0} m_SizeDelta: {x: 784.58325, y: 955}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0, y: 1}
--- !u!222 &2770326606164476908 --- !u!222 &2770326606164476908
CanvasRenderer: CanvasRenderer:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -11778,36 +11683,6 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!114 &2770326606164476906
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606164476903}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 1aa08ab6e0800fa44ae55d278d1423e3, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Content: {fileID: 2770326604978625765}
m_Horizontal: 0
m_Vertical: 1
m_MovementType: 2
m_Elasticity: 0.1
m_Inertia: 1
m_DecelerationRate: 0.135
m_ScrollSensitivity: 25
m_Viewport: {fileID: 2770326606707198991}
m_HorizontalScrollbar: {fileID: 2770326605669370232}
m_VerticalScrollbar: {fileID: 2770326606805154120}
m_HorizontalScrollbarVisibility: 0
m_VerticalScrollbarVisibility: 0
m_HorizontalScrollbarSpacing: -3
m_VerticalScrollbarSpacing: -3
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
--- !u!114 &2770326606164476905 --- !u!114 &2770326606164476905
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -11828,6 +11703,36 @@ MonoBehaviour:
m_FlexibleWidth: -1 m_FlexibleWidth: -1
m_FlexibleHeight: -1 m_FlexibleHeight: -1
m_LayoutPriority: 1 m_LayoutPriority: 1
--- !u!114 &3305621909771891433
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606164476903}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe67e999899ad8e4fb0ef021ae979b83, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Content: {fileID: 2770326604978625765}
m_Horizontal: 0
m_Vertical: 1
m_MovementType: 2
m_Elasticity: 0.1
m_Inertia: 0
m_DecelerationRate: 0.135
m_ScrollSensitivity: 1
m_Viewport: {fileID: 2770326606707198991}
m_HorizontalScrollbar: {fileID: 2770326605669370232}
m_VerticalScrollbar: {fileID: 2770326606805154120}
m_HorizontalScrollbarVisibility: 0
m_VerticalScrollbarVisibility: 0
m_HorizontalScrollbarSpacing: 0
m_VerticalScrollbarSpacing: 0
m_OnValueChanged:
m_PersistentCalls:
m_Calls: []
--- !u!1 &2770326606194450798 --- !u!1 &2770326606194450798
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -13154,7 +13059,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606332454988} m_GameObject: {fileID: 2770326606332454988}
m_Enabled: 1 m_Enabled: 0
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a6349c95e0055a64db6010b6bfaa9971, type: 3} m_Script: {fileID: 11500000, guid: a6349c95e0055a64db6010b6bfaa9971, type: 3}
m_Name: m_Name:
@ -14138,162 +14043,6 @@ MonoBehaviour:
m_VerticalOverflow: 0 m_VerticalOverflow: 0
m_LineSpacing: 1 m_LineSpacing: 1
m_Text: Tactical Rig A m_Text: Tactical Rig A
--- !u!1 &2770326606469580874
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2770326606469580875}
- component: {fileID: 2770326606469580878}
- component: {fileID: 2770326606469580877}
- component: {fileID: 2770326606469580876}
m_Layer: 5
m_Name: Text (TMP)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &2770326606469580875
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606469580874}
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_Children: []
m_Father: {fileID: 2770326604978625765}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 73.885, y: -20.11}
m_SizeDelta: {x: 147.77, y: 40.22}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2770326606469580878
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606469580874}
m_CullTransparentMesh: 1
--- !u!114 &2770326606469580877
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606469580874}
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_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Loot / Stash / Enemy Loadout
'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, 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: 36
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
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: -501.3629, 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!114 &2770326606469580876
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2770326606469580874}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: -1
m_MinHeight: -1
m_PreferredWidth: -1
m_PreferredHeight: -1
m_FlexibleWidth: 1
m_FlexibleHeight: 1
m_LayoutPriority: 1
--- !u!1 &2770326606479364061 --- !u!1 &2770326606479364061
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -15769,10 +15518,10 @@ RectTransform:
m_Father: {fileID: 2770326606141421692} m_Father: {fileID: 2770326606141421692}
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 296.4995, y: -520}
m_SizeDelta: {x: 1180, y: 100} m_SizeDelta: {x: 572.999, y: 100}
m_Pivot: {x: 0.5, y: 0.5} m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2770326606660306587 --- !u!222 &2770326606660306587
CanvasRenderer: CanvasRenderer:
@ -16846,8 +16595,8 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 2770326606276845106} m_TargetGraphic: {fileID: 2770326606276845106}
m_HandleRect: {fileID: 2770326606276845105} m_HandleRect: {fileID: 2770326606276845105}
m_Direction: 2 m_Direction: 2
m_Value: 1 m_Value: 1.0000001
m_Size: 0.29797196 m_Size: 0.29797193
m_NumberOfSteps: 0 m_NumberOfSteps: 0
m_OnValueChanged: m_OnValueChanged:
m_PersistentCalls: m_PersistentCalls:
@ -17296,9 +17045,9 @@ RectTransform:
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0} m_SizeDelta: {x: -17, y: -17}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &3537237844996785584 --- !u!222 &3537237844996785584
CanvasRenderer: CanvasRenderer:
@ -17495,9 +17244,9 @@ RectTransform:
m_RootOrder: 2 m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0} m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0} m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 20, y: 0} m_SizeDelta: {x: 20, y: -17}
m_Pivot: {x: 1, y: 1} m_Pivot: {x: 1, y: 1}
--- !u!222 &8721362350401160233 --- !u!222 &8721362350401160233
CanvasRenderer: CanvasRenderer:
@ -17579,11 +17328,153 @@ MonoBehaviour:
m_HandleRect: {fileID: 52681282418728116} m_HandleRect: {fileID: 52681282418728116}
m_Direction: 2 m_Direction: 2
m_Value: 1.0000024 m_Value: 1.0000024
m_Size: 0.6525001 m_Size: 0.6525
m_NumberOfSteps: 0 m_NumberOfSteps: 0
m_OnValueChanged: m_OnValueChanged:
m_PersistentCalls: m_PersistentCalls:
m_Calls: [] m_Calls: []
--- !u!1001 &620213215257673551
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 2770326606150301029}
m_Modifications:
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_SizeDelta.x
value: 75
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_SizeDelta.y
value: 75
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_AnchorMin.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_Pivot.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096029, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_Name
value: Total Pouches Text Container
objectReference: {fileID: 0}
- target: {fileID: 3380336335400096029, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 400c1a9d4e5603f428c15bd946331a4b, type: 3}
--- !u!224 &2770326605232467539 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 3380336335400096028, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
m_PrefabInstance: {fileID: 620213215257673551}
m_PrefabAsset: {fileID: 0}
--- !u!114 &2770326604711117547 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 3380336334881258916, guid: 400c1a9d4e5603f428c15bd946331a4b,
type: 3}
m_PrefabInstance: {fileID: 620213215257673551}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &661619027224530564 --- !u!1001 &661619027224530564
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -18748,6 +18639,12 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: efda854dc0407334a870a7d0db700c6d, type: 3} m_SourcePrefab: {fileID: 100100000, guid: efda854dc0407334a870a7d0db700c6d, type: 3}
--- !u!224 &7394345909396860500 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 3308353764518990372, guid: efda854dc0407334a870a7d0db700c6d,
type: 3}
m_PrefabInstance: {fileID: 5437072170663378032}
m_PrefabAsset: {fileID: 0}
--- !u!114 &7394345907320378009 stripped --- !u!114 &7394345907320378009 stripped
MonoBehaviour: MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 3308353763063672553, guid: efda854dc0407334a870a7d0db700c6d, m_CorrespondingSourceObject: {fileID: 3308353763063672553, guid: efda854dc0407334a870a7d0db700c6d,
@ -18760,12 +18657,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
--- !u!224 &7394345909396860500 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 3308353764518990372, guid: efda854dc0407334a870a7d0db700c6d,
type: 3}
m_PrefabInstance: {fileID: 5437072170663378032}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &6690270967246225769 --- !u!1001 &6690270967246225769
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -68,6 +68,9 @@ MonoBehaviour:
monetaryValue: 0 monetaryValue: 0
containerUIPrefab: {fileID: 4961555904879958529, guid: f3425cbf277fef64da5cb7046be46b55, containerUIPrefab: {fileID: 4961555904879958529, guid: f3425cbf277fef64da5cb7046be46b55,
type: 3} type: 3}
NestCapacity: 0
NestCapacityWeight: 1
NestCapacityText: {fileID: 0}
backdropImage: {fileID: 8623007654356922553} backdropImage: {fileID: 8623007654356922553}
emptyGridContainer: {fileID: 1491862847934857702} emptyGridContainer: {fileID: 1491862847934857702}
titleText: {fileID: 4059773790348099549} titleText: {fileID: 4059773790348099549}
@ -82,7 +85,7 @@ MonoBehaviour:
PickedUpOnFrame: 0 PickedUpOnFrame: 0
ContextWindows: [] ContextWindows: []
StorageWindow: {fileID: 0} StorageWindow: {fileID: 0}
limitStackSlotCapacity: {fileID: 0} limitStackItemManager: {fileID: 0}
pickUp: {fileID: 0} pickUp: {fileID: 0}
targetAttachment: {fileID: 0} targetAttachment: {fileID: 0}
Inventory: {fileID: 0} Inventory: {fileID: 0}

View File

@ -68,6 +68,9 @@ MonoBehaviour:
monetaryValue: 0 monetaryValue: 0
containerUIPrefab: {fileID: 4961555904879958529, guid: f67359f74b4cfa049a5ef8ae707825fa, containerUIPrefab: {fileID: 4961555904879958529, guid: f67359f74b4cfa049a5ef8ae707825fa,
type: 3} type: 3}
NestCapacityWeight: 2
NestCapacity: 0
NestCapacityText: {fileID: 0}
backdropImage: {fileID: 3687314440195664802} backdropImage: {fileID: 3687314440195664802}
emptyGridContainer: {fileID: 4539940039312744120} emptyGridContainer: {fileID: 4539940039312744120}
titleText: {fileID: 7403243874866252351} titleText: {fileID: 7403243874866252351}
@ -82,7 +85,7 @@ MonoBehaviour:
PickedUpOnFrame: 0 PickedUpOnFrame: 0
ContextWindows: [] ContextWindows: []
StorageWindow: {fileID: 0} StorageWindow: {fileID: 0}
limitStackSlotCapacity: {fileID: 0} limitStackItemManager: {fileID: 0}
pickUp: {fileID: 0} pickUp: {fileID: 0}
targetAttachment: {fileID: 0} targetAttachment: {fileID: 0}
Inventory: {fileID: 0} Inventory: {fileID: 0}

View File

@ -68,6 +68,9 @@ MonoBehaviour:
monetaryValue: 0 monetaryValue: 0
containerUIPrefab: {fileID: 4961555904879958529, guid: 365e19c70d7be644da9baa9f184cfbdc, containerUIPrefab: {fileID: 4961555904879958529, guid: 365e19c70d7be644da9baa9f184cfbdc,
type: 3} type: 3}
NestCapacityWeight: 3
NestCapacity: 0
NestCapacityText: {fileID: 0}
backdropImage: {fileID: 3977957700497187260} backdropImage: {fileID: 3977957700497187260}
emptyGridContainer: {fileID: 6196791555888581999} emptyGridContainer: {fileID: 6196791555888581999}
titleText: {fileID: 1930017987361097684} titleText: {fileID: 1930017987361097684}
@ -82,7 +85,7 @@ MonoBehaviour:
PickedUpOnFrame: 0 PickedUpOnFrame: 0
ContextWindows: [] ContextWindows: []
StorageWindow: {fileID: 0} StorageWindow: {fileID: 0}
limitStackSlotCapacity: {fileID: 0} limitStackItemManager: {fileID: 0}
pickUp: {fileID: 0} pickUp: {fileID: 0}
targetAttachment: {fileID: 0} targetAttachment: {fileID: 0}
Inventory: {fileID: 0} Inventory: {fileID: 0}

View File

@ -68,6 +68,9 @@ MonoBehaviour:
monetaryValue: 0 monetaryValue: 0
containerUIPrefab: {fileID: 4961555904879958529, guid: cea0924694ac2b04dacd8a84f4819fca, containerUIPrefab: {fileID: 4961555904879958529, guid: cea0924694ac2b04dacd8a84f4819fca,
type: 3} type: 3}
NestCapacityWeight: 4
NestCapacity: 0
NestCapacityText: {fileID: 0}
backdropImage: {fileID: 5404157481625572473} backdropImage: {fileID: 5404157481625572473}
emptyGridContainer: {fileID: 8178550395558321467} emptyGridContainer: {fileID: 8178550395558321467}
titleText: {fileID: 7942253201182377798} titleText: {fileID: 7942253201182377798}
@ -82,7 +85,7 @@ MonoBehaviour:
PickedUpOnFrame: 0 PickedUpOnFrame: 0
ContextWindows: [] ContextWindows: []
StorageWindow: {fileID: 0} StorageWindow: {fileID: 0}
limitStackSlotCapacity: {fileID: 0} limitStackItemManager: {fileID: 0}
pickUp: {fileID: 0} pickUp: {fileID: 0}
targetAttachment: {fileID: 0} targetAttachment: {fileID: 0}
Inventory: {fileID: 0} Inventory: {fileID: 0}

View File

@ -13,7 +13,6 @@ GameObject:
- component: {fileID: 8715477175483360843} - component: {fileID: 8715477175483360843}
- component: {fileID: 47521878755422833} - component: {fileID: 47521878755422833}
- component: {fileID: 2245991356252128075} - component: {fileID: 2245991356252128075}
- component: {fileID: 807945846787427321}
m_Layer: 5 m_Layer: 5
m_Name: Hunting Vest UI m_Name: Hunting Vest UI
m_TagString: Untagged m_TagString: Untagged
@ -37,6 +36,7 @@ RectTransform:
- {fileID: 8715477176133586256} - {fileID: 8715477176133586256}
- {fileID: 4834623922210394912} - {fileID: 4834623922210394912}
- {fileID: 7877060799696714568} - {fileID: 7877060799696714568}
- {fileID: 7827695615641516990}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -69,10 +69,13 @@ MonoBehaviour:
monetaryValue: 120000 monetaryValue: 120000
containerUIPrefab: {fileID: 8693914790612862727, guid: 4388120732ddcf44e90443329e307ef2, containerUIPrefab: {fileID: 8693914790612862727, guid: 4388120732ddcf44e90443329e307ef2,
type: 3} type: 3}
NestCapacity: 6
NestCapacityWeight: 0
NestCapacityText: {fileID: 0}
backdropImage: {fileID: 4890513872887803874} backdropImage: {fileID: 4890513872887803874}
emptyGridContainer: {fileID: 7783937236397527575} emptyGridContainer: {fileID: 7783937236397527575}
titleText: {fileID: 5534679363795623350} titleText: {fileID: 5534679363795623350}
stackText: {fileID: 0} stackText: {fileID: 1982156680494633597}
interactable: 1 interactable: 1
overrideSortingCanvas: {fileID: 0} overrideSortingCanvas: {fileID: 0}
Equipped: 0 Equipped: 0
@ -83,7 +86,7 @@ MonoBehaviour:
PickedUpOnFrame: 0 PickedUpOnFrame: 0
ContextWindows: [] ContextWindows: []
StorageWindow: {fileID: 0} StorageWindow: {fileID: 0}
limitStackSlotCapacity: {fileID: 0} limitStackItemManager: {fileID: 0}
pickUp: {fileID: 0} pickUp: {fileID: 0}
targetAttachment: {fileID: 0} targetAttachment: {fileID: 0}
Inventory: {fileID: 0} Inventory: {fileID: 0}
@ -136,20 +139,6 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!114 &807945846787427321
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8715477175483360852}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cb119beeb7574074d927412671ae9921, type: 3}
m_Name:
m_EditorClassIdentifier:
Capacity: 6
limitStackSlotCapacities: {fileID: 0}
--- !u!1 &8715477176133586259 --- !u!1 &8715477176133586259
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -224,6 +213,143 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!1001 &234830822692104665
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 8715477175483360853}
m_Modifications:
- target: {fileID: 2030810625184518788, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_Name
value: PouchCapacity
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_AnchoredPosition.x
value: -2
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_SizeDelta.x
value: 75
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_SizeDelta.y
value: 75
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_AnchorMin.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_AnchorMax.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_Pivot.x
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59, type: 3}
--- !u!224 &7827695615641516990 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 8062506367947231847, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
m_PrefabInstance: {fileID: 234830822692104665}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1982156680494633597 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 1783497591362485156, guid: a051df9ad6d3a7c4ab26f0bfd6a38f59,
type: 3}
m_PrefabInstance: {fileID: 234830822692104665}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &1408463969531715746 --- !u!1001 &1408463969531715746
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -12,6 +12,7 @@ GameObject:
- component: {fileID: 2813530617427812674} - component: {fileID: 2813530617427812674}
- component: {fileID: 2772551615480428293} - component: {fileID: 2772551615480428293}
- component: {fileID: 5726478664858734726} - component: {fileID: 5726478664858734726}
- component: {fileID: 8548910072347304289}
m_Layer: 5 m_Layer: 5
m_Name: Pouch_Cells_3x1 m_Name: Pouch_Cells_3x1
m_TagString: Untagged m_TagString: Untagged
@ -39,7 +40,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 0} m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 75, y: 150} m_SizeDelta: {x: 75, y: 225}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!114 &2813530617427812674 --- !u!114 &2813530617427812674
MonoBehaviour: MonoBehaviour:
@ -87,6 +88,7 @@ MonoBehaviour:
Height: 3 Height: 3
testItem: {fileID: 0} testItem: {fileID: 0}
testItems: [] testItems: []
itemsOnGrid: []
--- !u!114 &5726478664858734726 --- !u!114 &5726478664858734726
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -101,6 +103,26 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
AllowedItemTags: AllowedItemTags:
DisallowedItemTags: 0d0000000e0000000f00000010000000 DisallowedItemTags: 0d0000000e0000000f00000010000000
--- !u!114 &8548910072347304289
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4961555904879958529}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 306cc8c2b49d7114eaa3623786fc2126, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreLayout: 0
m_MinWidth: -1
m_MinHeight: -1
m_PreferredWidth: 75
m_PreferredHeight: 150
m_FlexibleWidth: -1
m_FlexibleHeight: -1
m_LayoutPriority: 1
--- !u!1001 &1541749983105574545 --- !u!1001 &1541749983105574545
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -11,8 +11,8 @@ GameObject:
- component: {fileID: 8693914790612862726} - component: {fileID: 8693914790612862726}
- component: {fileID: 8693914790612862723} - component: {fileID: 8693914790612862723}
- component: {fileID: 8693914790612862720} - component: {fileID: 8693914790612862720}
- component: {fileID: 2727715909017240871}
- component: {fileID: 4435060939358027050} - component: {fileID: 4435060939358027050}
- component: {fileID: 6100806319322366412}
m_Layer: 5 m_Layer: 5
m_Name: Pouch Container m_Name: Pouch Container
m_TagString: Untagged m_TagString: Untagged
@ -37,7 +37,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1} m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1} m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 0, y: 0} m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 1200, y: 270} m_SizeDelta: {x: 512, y: 480}
m_Pivot: {x: 0, y: 1} m_Pivot: {x: 0, y: 1}
--- !u!222 &8693914790612862723 --- !u!222 &8693914790612862723
CanvasRenderer: CanvasRenderer:
@ -76,31 +76,6 @@ MonoBehaviour:
m_FillOrigin: 0 m_FillOrigin: 0
m_UseSpriteMesh: 0 m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1 m_PixelsPerUnitMultiplier: 1
--- !u!114 &2727715909017240871
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8693914790612862727}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 30649d3a9faa99c48a7b1166b86bf2a0, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 20
m_Right: 0
m_Top: 20
m_Bottom: 0
m_ChildAlignment: 0
m_Spacing: 10
m_ChildForceExpandWidth: 0
m_ChildForceExpandHeight: 0
m_ChildControlWidth: 0
m_ChildControlHeight: 0
m_ChildScaleWidth: 1
m_ChildScaleHeight: 1
--- !u!114 &4435060939358027050 --- !u!114 &4435060939358027050
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -113,3 +88,28 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: f7d0b098e1e48e147ae210278860353c, type: 3} m_Script: {fileID: 11500000, guid: f7d0b098e1e48e147ae210278860353c, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
--- !u!114 &6100806319322366412
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8693914790612862727}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ca4a8ea6790b39a4e953947258d8bca2, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Padding:
m_Left: 5
m_Right: 5
m_Top: 5
m_Bottom: 5
m_ChildAlignment: 0
m_Spacing: 100
m_LineSpacing: 10
m_ChildControlWidth: 0
m_ChildControlHeight: 0
m_ChildScaleWidth: 0
m_ChildScaleHeight: 0
m_ReverseArrangement: 0

View File

@ -0,0 +1,136 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2030810625184518788
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 8062506367947231847}
- component: {fileID: 6638332678230561465}
- component: {fileID: 1783497591362485156}
m_Layer: 0
m_Name: PouchCapacity
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &8062506367947231847
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2030810625184518788}
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_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0}
m_AnchorMax: {x: 1, y: 0}
m_AnchoredPosition: {x: -2, y: 0}
m_SizeDelta: {x: 75, y: 75}
m_Pivot: {x: 1, y: 0}
--- !u!222 &6638332678230561465
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2030810625184518788}
m_CullTransparentMesh: 0
--- !u!114 &1783497591362485156
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2030810625184518788}
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_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 0/0
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 0bc531ed4c4454f43b94208192049ec5, type: 2}
m_sharedMaterial: {fileID: -8456875887944785103, guid: 0bc531ed4c4454f43b94208192049ec5,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4291151301
m_fontColor: {r: 0.7735849, g: 0.7735849, b: 0.7735849, 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: 20
m_fontSizeBase: 20
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 1
m_HorizontalAlignment: 4
m_VerticalAlignment: 1024
m_textAlignment: 65535
m_characterSpacing: 2
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: 1
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 4, w: 2}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a051df9ad6d3a7c4ab26f0bfd6a38f59
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
public class ScrollRectNoDrag : ScrollRect
{
public override void OnBeginDrag(PointerEventData eventData) { }
public override void OnDrag(PointerEventData eventData) { }
public override void OnEndDrag(PointerEventData eventData) { }
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fe67e999899ad8e4fb0ef021ae979b83
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -80,8 +80,8 @@ namespace SimpleInventorySystem
{ {
foreach (ItemUI item in itemUIs) foreach (ItemUI item in itemUIs)
{ {
Debug.Log(item.gameObject.name); //Debug.Log(item.gameObject.name);
Debug.Log(item.pickUp.gameObject.name); //Debug.Log(item.pickUp.gameObject.name);
item.pickUp.ItemGameObject.SetActive(false); item.pickUp.ItemGameObject.SetActive(false);
} }
itemsHaveBeenHidden = true; itemsHaveBeenHidden = true;

View File

@ -36,14 +36,14 @@ namespace SimpleInventorySystem
{ {
if(itemUI.container != null) if(itemUI.container != null)
{ {
Debug.Log("Append: " + targetParentTransform.name); //Debug.Log("Append: " + targetParentTransform.name);
itemUI.container.SetActive(true); itemUI.container.SetActive(true);
itemUI.container.transform.SetParent(targetParentTransform, false); itemUI.container.transform.SetParent(targetParentTransform, false);
Debug.Log("Append: " + "This should be working..."); Debug.Log("Append: " + "This should be working...");
} }
else if (itemUI.containerUIPrefab != null) else if (itemUI.containerUIPrefab != null)
{ {
Debug.Log("Creating new"); //Debug.Log("Creating new");
itemUI.container = Instantiate(itemUI.containerUIPrefab, targetParentTransform, false); itemUI.container = Instantiate(itemUI.containerUIPrefab, targetParentTransform, false);
itemUI.container.name = itemUI.container.name + " " + inCount; itemUI.container.name = itemUI.container.name + " " + inCount;
inCount++; inCount++;

View File

@ -83,7 +83,7 @@ namespace SimpleInventorySystem
{ {
foreach (GameObject uiContainerGameObject in showGameObjects) foreach (GameObject uiContainerGameObject in showGameObjects)
{ {
Debug.Log("Hide: " + uiContainerGameObject.name); //Debug.Log("Hide: " + uiContainerGameObject.name);
uiContainerGameObject.SetActive(false); uiContainerGameObject.SetActive(false);
} }
foreach (GameObject uiContainerGameObject in hideGameObjects) foreach (GameObject uiContainerGameObject in hideGameObjects)
@ -104,7 +104,7 @@ namespace SimpleInventorySystem
{ {
if (slot != null && slot.GetItemUI() == null && (slots == null || slots.Length == 0)) if (slot != null && slot.GetItemUI() == null && (slots == null || slots.Length == 0))
{ {
Debug.Log("A"); //Debug.Log("A");
return false; return false;
} }
else if(slots != null && slots.Length > 0) else if(slots != null && slots.Length > 0)
@ -116,7 +116,7 @@ namespace SimpleInventorySystem
{ {
if (requireAllSlots) if (requireAllSlots)
{ {
Debug.Log("B"); //Debug.Log("B");
return false; return false;
} }
} }
@ -132,11 +132,11 @@ namespace SimpleInventorySystem
if(!atLesatOneSlot && !requireAllSlots) if(!atLesatOneSlot && !requireAllSlots)
{ {
Debug.Log("C"); //Debug.Log("C");
return false; return false;
} }
} }
Debug.Log("D"); //Debug.Log("D");
return true; return true;
} }
@ -170,6 +170,7 @@ namespace SimpleInventorySystem
Debug.Log("GroupSlotUI: Removed Item"); Debug.Log("GroupSlotUI: Removed Item");
if (!HasSlotsOccupied()) if (!HasSlotsOccupied())
{ {
Debug.Log("GroupSlotUI: Hide UI");
HideUIContainer(); HideUIContainer();
} }
} }

View File

@ -23,8 +23,14 @@ namespace SimpleInventorySystem
public int height; public int height;
public float weight; public float weight;
public float monetaryValue; public float monetaryValue;
[Header("Container Prefab")] [Header("Container Attributes")]
public GameObject containerUIPrefab; public GameObject containerUIPrefab;
[Header("Nested Item Attributes")]
public int NestCapacityWeight;
[Header("Nested Container Attributes")]
public int NestCapacity;
public TextMeshProUGUI NestCapacityText;
[HideInInspector] public int NestCapacityCount { get; private set; }
[Header("Required Component Links")] [Header("Required Component Links")]
public Image backdropImage; public Image backdropImage;
public RectTransform emptyGridContainer; public RectTransform emptyGridContainer;
@ -34,14 +40,15 @@ namespace SimpleInventorySystem
[HideInInspector] public bool interactable = true; [HideInInspector] public bool interactable = true;
[HideInInspector] public Canvas overrideSortingCanvas; [HideInInspector] public Canvas overrideSortingCanvas;
[HideInInspector] public bool Equipped; [HideInInspector] public bool Equipped;
[HideInInspector] public List<ItemUI> ContainedItems = new List<ItemUI>(); [HideInInspector] public List<ItemUI> NestedItems = new List<ItemUI>();
[HideInInspector] public ItemUI ParentContainer; [HideInInspector] public ItemUI ParentContainer;
[HideInInspector] public GameObject container; [HideInInspector] public GameObject container;
[HideInInspector] public Canvas canvas; [HideInInspector] public Canvas canvas;
[HideInInspector] public bool PickedUpOnFrame; [HideInInspector] public bool PickedUpOnFrame;
[HideInInspector] public List<GameObject> ContextWindows = new List<GameObject>(); [HideInInspector] public List<GameObject> ContextWindows = new List<GameObject>();
[HideInInspector] public StorageWindowUI StorageWindow; [HideInInspector] public StorageWindowUI StorageWindow;
[HideInInspector] public LimitStackSlotCapacity limitStackSlotCapacity; //[HideInInspector] public LimitStackItemCapacity limitStackItemCapacity;
[HideInInspector] public LimitStackItemManager limitStackItemManager;
[HideInInspector] public PickUp pickUp; [HideInInspector] public PickUp pickUp;
[HideInInspector] public TargetAttachment targetAttachment; [HideInInspector] public TargetAttachment targetAttachment;
@ -182,7 +189,7 @@ namespace SimpleInventorySystem
} }
canvasGroup = GetComponent<CanvasGroup>(); canvasGroup = GetComponent<CanvasGroup>();
limitStackSlotCapacity = GetComponent<LimitStackSlotCapacity>(); //limitStackItemCapacity = GetComponent<LimitStackItemCapacity>();
if (width <= 0 || height <= 0) if (width <= 0 || height <= 0)
{ {
@ -202,7 +209,7 @@ namespace SimpleInventorySystem
/// Returns an integer number if it has a container with a GridUI. the number returned is either -1 if no gridUI exists, or the capacity in terms of 1x1 cells. /// Returns an integer number if it has a container with a GridUI. the number returned is either -1 if no gridUI exists, or the capacity in terms of 1x1 cells.
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public int ContainerCapacity() /* public int ContainerCapacity()
{ {
GridUI gridUI = null; GridUI gridUI = null;
if (container != null && container.TryGetComponent<GridUI>(out gridUI)) if (container != null && container.TryGetComponent<GridUI>(out gridUI))
@ -210,6 +217,31 @@ namespace SimpleInventorySystem
return gridUI.gridSize.Width * gridUI.gridSize.Height; return gridUI.gridSize.Width * gridUI.gridSize.Height;
} }
return -1; return -1;
}*/
public bool WillExceedMaximumCapacity(int weight)
{
return NestCapacityCount >= NestCapacity || NestCapacityCount + weight > NestCapacity;
}
public bool WillExceedZeroCapacity(int weight)
{
return NestCapacityCount <= 0 || NestCapacityCount - weight < 0;
}
public void IncreaseCapacityCount(ItemUI attachedItem)
{
if (!WillExceedMaximumCapacity(attachedItem.NestCapacityWeight))
{
NestCapacityCount += attachedItem.NestCapacityWeight;
SetRenderItemUIPropertyValue();
}
}
public void DecreaseCapacityCount(ItemUI attachedItem)
{
if (!WillExceedZeroCapacity(attachedItem.NestCapacityWeight))
{
NestCapacityCount -= attachedItem.NestCapacityWeight;
SetRenderItemUIPropertyValue();
}
} }
public void FindTextMeshProUGUI() public void FindTextMeshProUGUI()
@ -230,19 +262,31 @@ namespace SimpleInventorySystem
stackText = stackTextGameObject.GetComponent<TextMeshProUGUI>(); stackText = stackTextGameObject.GetComponent<TextMeshProUGUI>();
} }
} }
if (NestCapacityText == null)
{
Transform capacityTextGameObject = transform.Find("PouchCapacity");
if (capacityTextGameObject != null)
{
NestCapacityText = capacityTextGameObject.GetComponent<TextMeshProUGUI>();
}
}
} }
private void SetRenderItemUIPropertyValue() private void SetRenderItemUIPropertyValue()
{ {
if (titleText != null) if (titleText != null)
{ {
Debug.Log($"Set Item name: {itemName}"); //Debug.Log($"Set Item name: {itemName}");
titleText.text = (displayName != null && !string.IsNullOrEmpty(displayName)) ? displayName : itemName; titleText.text = (displayName != null && !string.IsNullOrEmpty(displayName)) ? displayName : itemName;
} }
if(stackText != null) if(stackText != null)
{ {
stackText.text = Count.ToString(); stackText.text = Count.ToString();
} }
if (NestCapacityText != null)
{
NestCapacityText.text = NestCapacityCount.ToString() + " / " + NestCapacity.ToString();
}
} }
public SlotUI GetSlotUI() public SlotUI GetSlotUI()
@ -482,12 +526,12 @@ namespace SimpleInventorySystem
public void AddToContainedItems(ItemUI item) public void AddToContainedItems(ItemUI item)
{ {
ContainedItems.Add(item); NestedItems.Add(item);
item.ParentContainer = this; item.ParentContainer = this;
} }
public void RemoveFromContainedItems(ItemUI item) public void RemoveFromContainedItems(ItemUI item)
{ {
ContainedItems.Remove(item); NestedItems.Remove(item);
item.ParentContainer = null; item.ParentContainer = null;
} }
@ -789,6 +833,13 @@ namespace SimpleInventorySystem
stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90); stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height); stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
} }
// capacity text transform
if (NestCapacityText != null)
{
NestCapacityText.rectTransform.pivot = new Vector2(1, 0);
NestCapacityText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
NestCapacityText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
}
// image Orientation // image Orientation
imageOrientation = (width > height) ? Orientation.Landscape : Orientation.Portrait; imageOrientation = (width > height) ? Orientation.Landscape : Orientation.Portrait;
break; break;
@ -811,6 +862,13 @@ namespace SimpleInventorySystem
stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90); stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height); stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
} }
// capacity text transform
if (NestCapacityText != null)
{
NestCapacityText.rectTransform.pivot = new Vector2(0, 0);
NestCapacityText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
NestCapacityText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
}
// image Orientation // image Orientation
imageOrientation = (width > height) ? Orientation.Portrait : Orientation.Landscape; imageOrientation = (width > height) ? Orientation.Portrait : Orientation.Landscape;
break; break;
@ -833,6 +891,13 @@ namespace SimpleInventorySystem
stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90); stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height); stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
} }
// capacity text transform
if (NestCapacityText != null)
{
NestCapacityText.rectTransform.pivot = new Vector2(0, 1);
NestCapacityText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
NestCapacityText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
}
// image Orientation // image Orientation
imageOrientation = (width > height) ? Orientation.Landscape : Orientation.Portrait; imageOrientation = (width > height) ? Orientation.Landscape : Orientation.Portrait;
break; break;
@ -855,6 +920,13 @@ namespace SimpleInventorySystem
stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90); stackText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height); stackText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
} }
// stack count transform
if (NestCapacityText != null)
{
NestCapacityText.rectTransform.pivot = new Vector2(1, 1);
NestCapacityText.rectTransform.Rotate(new Vector3(0, 0, 1), 90);
NestCapacityText.rectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, imageSizeOnGrid.Height);
}
// image Orientation // image Orientation
imageOrientation = (width > height) ? Orientation.Portrait : Orientation.Landscape; imageOrientation = (width > height) ? Orientation.Portrait : Orientation.Landscape;
break; break;

View File

@ -0,0 +1,100 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
namespace SimpleInventorySystem
{
public class LimitStackItemManager : MonoBehaviour
{
//public int StackItemLimit = 0;
//public int Count { get; private set; }
public LimitStackSlot[] limitStackSlots;
public bool combinedLimit = true;
//public TextMeshProUGUI capacityText;
public ItemUI itemUI;
public SlotUI slot;
private void Awake()
{
foreach (LimitStackSlot ls in limitStackSlots)
{
ls.limitStackItemManager = this;
}
//slot = GetComponent<SlotUI>();
//itemUI.limitStackItemCapacity.SetRenderItemUIPropertyValue();
}
public void SetStackSlotLimit(ItemUI item)
{
if(item == null)
{
Debug.LogWarning("LimitStackSlotManager: SetStackSlotLimit(ItemUI item): The passed item should not be null.");
return;
}
itemUI = item;
//StackItemLimit = item.limitStackItemCapacity.Capacity;
//Debug.Log($"StackSlotLimit: {StackItemLimit}");
//itemUI.limitStackItemCapacity.SetRenderItemUIPropertyValue();
}
public void UnsetStackSlotLimit()
{
//StackItemLimit = 0;
//Count = 0;
//itemUI.limitStackItemCapacity.SetRenderItemUIPropertyValue();
itemUI = null;
}
// Start is called before the first frame update
void Start()
{
foreach (LimitStackSlot ls in limitStackSlots)
{
ls.limitStackItemManager = this;
}
slot.limitStackItemManager = this;
}
// Update is called once per frame
void Update()
{
}
public void Increment(ItemUI attachedItem)
{
if(itemUI != null)
{
itemUI.IncreaseCapacityCount(attachedItem);
}
}
public void Decrement(ItemUI attachedItem)
{
if (itemUI != null)
{
itemUI.DecreaseCapacityCount(attachedItem);
}
}
/*private LimitStackSlot GetLimitStackSlot(ItemUI item)
{
foreach (LimitStackSlot ls in limitStackSlots)
{
if(item == ls.itemUI)
{
return ls;
}
}
return null;
}*/
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 886d4d53fb341454aa56488c1768c081
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -7,22 +7,24 @@ namespace SimpleInventorySystem
public class LimitStackSlot : MonoBehaviour public class LimitStackSlot : MonoBehaviour
{ {
[HideInInspector] public SlotUI Slot; [HideInInspector] public SlotUI Slot;
public int Weight; //public int Weight;
[HideInInspector] public LimitStackSlotManager limitStackSlotCapacities; //[HideInInspector] public LimitStackSlotManager limitStackSlotCapacities;
[HideInInspector] public LimitStackItemManager limitStackItemManager;
public void Increment()
public void Increment(ItemUI itemUI)
{ {
limitStackSlotCapacities.Increment(this); limitStackItemManager.Increment(itemUI);
} }
public void Decrement() public void Decrement(ItemUI itemUI)
{ {
limitStackSlotCapacities.Decrement(this); limitStackItemManager.Decrement(itemUI);
} }
public bool HasReachedLimit(int weight) public bool HasReachedLimit(ItemUI itemUI)
{ {
return limitStackSlotCapacities.HasReachedLimit(weight); return limitStackItemManager.itemUI.WillExceedMaximumCapacity(itemUI.NestCapacityWeight);
} }
private void Awake() private void Awake()

View File

@ -1,12 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace SimpleInventorySystem
{
public class LimitStackSlotCapacity : MonoBehaviour
{
public int Capacity;
[HideInInspector] public LimitStackSlotManager limitStackSlotCapacities;
}
}

View File

@ -1,107 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
namespace SimpleInventorySystem
{
public class LimitStackSlotManager : MonoBehaviour
{
public int StackSlotLimit = 0;
public int Count { get; private set; }
public LimitStackSlot[] limitStackSlots;
public bool combinedLimit = true;
public TextMeshProUGUI capacityText;
public SlotUI slot;
private void Awake()
{
foreach (LimitStackSlot ls in limitStackSlots)
{
ls.limitStackSlotCapacities = this;
}
//slot = GetComponent<SlotUI>();
SetRenderItemUIPropertyValue();
}
private void SetRenderItemUIPropertyValue()
{
if (slot != null)
{
capacityText.text = Count.ToString() + " / " + StackSlotLimit.ToString();
}
}
public void SetStackSlotLimit(ItemUI item)
{
if(item == null || item.GetComponent<LimitStackSlotCapacity>() == null)
{
Debug.LogWarning("LimitStackSlotManager: SetStackSlotLimit(ItemUI item): The passed item should not be null and should have a LimitStackSlotCapacity component.");
return;
}
StackSlotLimit = item.GetComponent<LimitStackSlotCapacity>().Capacity;
Debug.Log($"StackSlotLimit: {StackSlotLimit}");
SetRenderItemUIPropertyValue();
}
public void UnsetStackSlotLimit()
{
StackSlotLimit = 0;
Count = 0;
SetRenderItemUIPropertyValue();
}
// Start is called before the first frame update
void Start()
{
foreach (LimitStackSlot ls in limitStackSlots)
{
ls.limitStackSlotCapacities = this;
}
slot.limitStackSlotManager = this;
}
// Update is called once per frame
void Update()
{
}
public void Increment(LimitStackSlot ls)
{
Count += ls.Weight;
SetRenderItemUIPropertyValue();
}
public void Decrement(LimitStackSlot ls)
{
Count -= ls.Weight;
SetRenderItemUIPropertyValue();
}
public bool HasReachedLimit(int weight)
{
return Count >= StackSlotLimit || Count + weight > StackSlotLimit;
}
private LimitStackSlot GetLimitStackSlot(SlotUI slot)
{
foreach (LimitStackSlot ls in limitStackSlots)
{
if(slot == ls.Slot)
{
return ls;
}
}
return null;
}
}
}

View File

@ -30,7 +30,7 @@ namespace SimpleInventorySystem
// Hidden In Inspector // Hidden In Inspector
[HideInInspector] public Stack<ItemUI> stackedItems = new Stack<ItemUI>(); // WARNING: Stack can give some odd troubles with the raycast, consider revision or consideration. [HideInInspector] public Stack<ItemUI> stackedItems = new Stack<ItemUI>(); // WARNING: Stack can give some odd troubles with the raycast, consider revision or consideration.
[HideInInspector] public LimitStackSlot limitStackSlot; [HideInInspector] public LimitStackSlot limitStackSlot;
[HideInInspector] public LimitStackSlotManager limitStackSlotManager; [HideInInspector] public LimitStackItemManager limitStackItemManager;
[HideInInspector] public bool DroppedOnFrame; [HideInInspector] public bool DroppedOnFrame;
public List<GroupSlotUI> groupSlots; public List<GroupSlotUI> groupSlots;
[HideInInspector] public GridUI grid; [HideInInspector] public GridUI grid;
@ -91,10 +91,11 @@ namespace SimpleInventorySystem
return false; return false;
} }
if (limitStackSlot != null && limitStackSlot.HasReachedLimit(limitStackSlot.Weight)) if (limitStackSlot != null && limitStackSlot.HasReachedLimit(itemDrop))
{ {
return false; return false;
} }
//Debug.Log($"SlotUI:Is LimitStackItem Manager null? {limitStackItemManager == null}");
List<Cell> occupiedCells = new List<Cell>(); List<Cell> occupiedCells = new List<Cell>();
@ -172,7 +173,7 @@ namespace SimpleInventorySystem
CellInUse = cell.inUse; CellInUse = cell.inUse;
} }
Debug.Log($"Using Image as Slot Holder: {useImageAsSlotHolder}"); //Debug.Log($"Using Image as Slot Holder: {useImageAsSlotHolder}");
Transform parent = transform; Transform parent = transform;
if (useImageAsSlotHolder && image != null) if (useImageAsSlotHolder && image != null)
{ {
@ -228,14 +229,14 @@ namespace SimpleInventorySystem
// Debug.Log("Test"); // Debug.Log("Test");
appendUI.AppendUIToTransform(itemUI); appendUI.AppendUIToTransform(itemUI);
} }
if (limitStackSlotManager != null) if (limitStackItemManager != null)
{ {
limitStackSlotManager.SetStackSlotLimit(itemUI); limitStackItemManager.SetStackSlotLimit(itemUI);
} }
if (limitStackSlot != null) if (limitStackSlot != null)
{ {
limitStackSlot.Increment(); limitStackSlot.Increment(itemUI);
} }
if (BelongsToItemInSlot != null && BelongsToItemInSlot.GetItemUI() != null) if (BelongsToItemInSlot != null && BelongsToItemInSlot.GetItemUI() != null)
@ -250,7 +251,7 @@ namespace SimpleInventorySystem
if (HasSlotsBelongingToItem != null) if (HasSlotsBelongingToItem != null)
{ {
foreach (ItemUI i in itemUI.ContainedItems) foreach (ItemUI i in itemUI.NestedItems)
{ {
foreach(SlotUI s in HasSlotsBelongingToItem) foreach(SlotUI s in HasSlotsBelongingToItem)
{ {
@ -325,10 +326,10 @@ namespace SimpleInventorySystem
{ {
HideImage(); HideImage();
if (limitStackSlot != null) /*if (limitStackSlot != null)
{ {
limitStackSlot.Increment(); limitStackSlot.Increment(itemUI);
} }*/
//DropOntoSlot(item.gameObject); //DropOntoSlot(item.gameObject);
@ -350,6 +351,14 @@ namespace SimpleInventorySystem
stackedItems.Pop(); stackedItems.Pop();
}*/ }*/
SetRenderItemUIPropertyValue(); SetRenderItemUIPropertyValue();
if (groupSlots != null)
{
foreach (GroupSlotUI gs in groupSlots)
{
gs.OnItemDropped();
}
}
} }
public void RemoveContainedItemsFromSlot() public void RemoveContainedItemsFromSlot()
{ {
@ -358,10 +367,10 @@ namespace SimpleInventorySystem
while (stackedItems.Count > 0) while (stackedItems.Count > 0)
{ {
if (limitStackSlot != null) /*if (limitStackSlot != null)
{ {
limitStackSlot.Decrement(); limitStackSlot.Decrement(itemUI);
} }*/
if (itemUI.ParentContainer == null) if (itemUI.ParentContainer == null)
{ {
@ -375,6 +384,14 @@ namespace SimpleInventorySystem
oldItem.SetSlot(this); oldItem.SetSlot(this);
} }
if (groupSlots != null)
{
foreach (GroupSlotUI gs in groupSlots)
{
gs.OnItemRemoved();
}
}
SetRenderItemUIPropertyValue(); SetRenderItemUIPropertyValue();
} }
@ -401,12 +418,12 @@ namespace SimpleInventorySystem
if (limitStackSlot != null) if (limitStackSlot != null)
{ {
limitStackSlot.Decrement(); limitStackSlot.Decrement(itemUI);
} }
if (limitStackSlotManager != null) if (limitStackItemManager != null)
{ {
limitStackSlotManager.UnsetStackSlotLimit(); limitStackItemManager.UnsetStackSlotLimit();
} }
if(changeSlotTitle != null) if(changeSlotTitle != null)

View File

@ -7314,6 +7314,32 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 328506870} m_PrefabInstance: {fileID: 328506870}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1 &329037811 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 2770326606332454988, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
--- !u!114 &329037812
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 329037811}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 886d4d53fb341454aa56488c1768c081, type: 3}
m_Name:
m_EditorClassIdentifier:
limitStackSlots:
- {fileID: 1398510206}
- {fileID: 2038131952}
- {fileID: 924261203}
- {fileID: 716133342}
combinedLimit: 1
itemUI: {fileID: 0}
slot: {fileID: 2027593487}
--- !u!1 &333145654 --- !u!1 &333145654
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -14390,6 +14416,18 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 584433973} m_PrefabInstance: {fileID: 584433973}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!114 &716133342 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2770326606725301637, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10cced2d2da0da042904a89dbd544987, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &716675402 --- !u!1 &716675402
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -23129,6 +23167,18 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 922596141} m_PrefabInstance: {fileID: 922596141}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!114 &924261203 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2770326605604029970, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10cced2d2da0da042904a89dbd544987, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &927487909 --- !u!1001 &927487909
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -24316,6 +24366,32 @@ GameObject:
m_NavMeshLayer: 0 m_NavMeshLayer: 0
m_StaticEditorFlags: 0 m_StaticEditorFlags: 0
m_IsActive: 1 m_IsActive: 1
--- !u!1 &986673369 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 2770326605851189360, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
--- !u!114 &986673371
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 986673369}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 886d4d53fb341454aa56488c1768c081, type: 3}
m_Name:
m_EditorClassIdentifier:
limitStackSlots:
- {fileID: 1398510206}
- {fileID: 2038131952}
- {fileID: 924261203}
- {fileID: 716133342}
combinedLimit: 1
itemUI: {fileID: 0}
slot: {fileID: 2027593487}
--- !u!4 &992107632 stripped --- !u!4 &992107632 stripped
Transform: Transform:
m_CorrespondingSourceObject: {fileID: 8057961283841219706, guid: dd9b029df69093b488cafc213793511e, m_CorrespondingSourceObject: {fileID: 8057961283841219706, guid: dd9b029df69093b488cafc213793511e,
@ -37389,6 +37465,18 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 1397649401} m_PrefabInstance: {fileID: 1397649401}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!114 &1398510206 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2770326605039798047, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10cced2d2da0da042904a89dbd544987, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &1400863731 --- !u!1001 &1400863731
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -46320,6 +46408,20 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 1793588189} m_PrefabInstance: {fileID: 1793588189}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!1 &1796317325 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 6546923916990955624, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
--- !u!222 &1796317327
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1796317325}
m_CullTransparentMesh: 0
--- !u!1 &1799529557 --- !u!1 &1799529557
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -49742,9 +49844,19 @@ MonoBehaviour:
- {fileID: 8053794548077495502, guid: 3e5ad4148935cf44f8f502719c58ac30, type: 3} - {fileID: 8053794548077495502, guid: 3e5ad4148935cf44f8f502719c58ac30, type: 3}
- {fileID: 1241596305986958, guid: 7f0652b80b458c74b9383ea6a02ea96e, type: 3} - {fileID: 1241596305986958, guid: 7f0652b80b458c74b9383ea6a02ea96e, type: 3}
- {fileID: 8053794548077495502, guid: 3e5ad4148935cf44f8f502719c58ac30, type: 3} - {fileID: 8053794548077495502, guid: 3e5ad4148935cf44f8f502719c58ac30, type: 3}
- {fileID: 1360962833793172, guid: e3c3fc737aaecec47998dbddc1dc85f6, type: 3} - {fileID: 8053794548077495502, guid: 67a5c33ceead1f14399d9a78cdcfb734, type: 3}
- {fileID: 1241596305986958, guid: 5ddf4d2d41dcd3c46893e4b8cd1fc142, type: 3} - {fileID: 1241596305986958, guid: 5ddf4d2d41dcd3c46893e4b8cd1fc142, type: 3}
- {fileID: 1360962833793172, guid: e3c3fc737aaecec47998dbddc1dc85f6, type: 3} - {fileID: 1916028363477544, guid: 9b265c86b7e8fa848a93d6766140839b, type: 3}
- {fileID: 8053794548077495502, guid: 67a5c33ceead1f14399d9a78cdcfb734, type: 3}
- {fileID: 8053794548077495502, guid: 4f93d111a901f1a4ba252ba52a6d1a83, type: 3}
- {fileID: 8053794548077495502, guid: 4f93d111a901f1a4ba252ba52a6d1a83, type: 3}
- {fileID: 8053794548077495502, guid: 4f93d111a901f1a4ba252ba52a6d1a83, type: 3}
- {fileID: 1916028363477544, guid: 9b265c86b7e8fa848a93d6766140839b, type: 3}
- {fileID: 1916028363477544, guid: 9b265c86b7e8fa848a93d6766140839b, type: 3}
- {fileID: 8053794548077495502, guid: 09d984ff8b1e9f841938cc645460bc27, type: 3}
- {fileID: 8053794548077495502, guid: 72ee0f19f22b98145ab1c93fd56be6b9, type: 3}
- {fileID: 8053794548077495502, guid: f0fbb4c62750a814c8baa4eeceba5d63, type: 3}
- {fileID: 8053794548077495502, guid: f0fbb4c62750a814c8baa4eeceba5d63, type: 3}
itemUIs: [] itemUIs: []
--- !u!4 &1937331975 stripped --- !u!4 &1937331975 stripped
Transform: Transform:
@ -51612,6 +51724,18 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 2027311414} m_PrefabInstance: {fileID: 2027311414}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!114 &2027593487 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2770326606194450705, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3ef5d74bab1474e4489c7b99860a62bf, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &2028429108 --- !u!1001 &2028429108
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -51738,6 +51862,18 @@ Transform:
type: 3} type: 3}
m_PrefabInstance: {fileID: 1891797248} m_PrefabInstance: {fileID: 1891797248}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!114 &2038131952 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 2770326605069652577, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
m_PrefabInstance: {fileID: 2770326605231792848}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 10cced2d2da0da042904a89dbd544987, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &2044589599 --- !u!1001 &2044589599
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -56360,10 +56496,15 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 0} m_TransformParent: {fileID: 0}
m_Modifications: m_Modifications:
- target: {fileID: 1082071285, guid: 9f005685dc17f4643b4a1156970fe2f6, type: 3} - target: {fileID: 2109804768, guid: 9f005685dc17f4643b4a1156970fe2f6, type: 3}
propertyPath: marker propertyPath: m_Enabled
value: value: 0
objectReference: {fileID: 993743619} objectReference: {fileID: 0}
- target: {fileID: 51727583602948897, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Value
value: 0
objectReference: {fileID: 0}
- target: {fileID: 52681282418728116, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 52681282418728116, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -56379,6 +56520,21 @@ PrefabInstance:
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1024558551205503332, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_ScrollSensitivity
value: 10
objectReference: {fileID: 0}
- target: {fileID: 1024558551205503332, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Vertical
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1024558551205503332, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_MovementType
value: 2
objectReference: {fileID: 0}
- target: {fileID: 1751467116486688318, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 1751467116486688318, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -56399,62 +56555,35 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2233503621217788993, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604711117547, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.x propertyPath: m_Enabled
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2233503621217788993, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604711117547, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMax.x propertyPath: m_isOrthographic
value: 0 value: 1
objectReference: {fileID: 0}
- target: {fileID: 2233503621217788993, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326604729312355, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326604729312355, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326604729312355, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 0 value: 296.4995
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604746266596, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0 value: -797.5
objectReference: {fileID: 0}
- target: {fileID: 2770326604803646894, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_text
value: 'Headset
'
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326604942899899, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604942899899, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
@ -56494,12 +56623,12 @@ PrefabInstance:
- target: {fileID: 2770326604978625765, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604978625765, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: -0.00012207031 value: 0.000061035156
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326604978625765, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326604978625765, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0.00012207031 value: -0.00012207031
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605030914168, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605030914168, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
@ -56516,6 +56645,11 @@ PrefabInstance:
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605232467538, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326605244884164, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605244884164, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -56711,6 +56845,11 @@ PrefabInstance:
propertyPath: m_SizeDelta.y propertyPath: m_SizeDelta.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605532365201, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 373.79163
objectReference: {fileID: 0}
- target: {fileID: 2770326605589712583, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605589712583, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -56726,6 +56865,11 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605600926436, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 480
objectReference: {fileID: 0}
- target: {fileID: 2770326605623600441, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605623600441, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_LocalPosition.z propertyPath: m_LocalPosition.z
@ -56751,6 +56895,11 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605669370232, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Value
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326605678039105, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605678039105, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -56779,17 +56928,22 @@ PrefabInstance:
- target: {fileID: 2770326605768550993, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605768550993, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605768550993, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605768550993, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605768550993, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605768550993, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 0 value: 10
objectReference: {fileID: 0}
- target: {fileID: 2770326605768550993, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 480
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605790841685, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605790841685, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
@ -56851,11 +57005,6 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605790841687, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: TagSlotGridPairings.Array.data[6].lootingGrid
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2770326605790841688, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605790841688, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: pauseMenu propertyPath: pauseMenu
@ -56911,6 +57060,11 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326605851189363, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Enabled
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326605906428287, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326605906428287, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -56939,37 +57093,37 @@ PrefabInstance:
- target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 0 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 0 value: 296.4995
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606002374600, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0 value: -540
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606043385230, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606043385230, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606043385230, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606043385230, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMax.y propertyPath: m_AnchorMax.y
value: 1 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606043385230, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606043385230, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: -2500 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606050442471, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606050442471, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
@ -57019,12 +57173,12 @@ PrefabInstance:
- target: {fileID: 2770326606141421692, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606141421692, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: -0.00007435821 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606141421692, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606141421692, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchoredPosition.y propertyPath: m_AnchoredPosition.y
value: 0.00004605394 value: -0.00024414062
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606150301029, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606150301029, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
@ -57066,31 +57220,6 @@ PrefabInstance:
propertyPath: m_AnchoredPosition.x propertyPath: m_AnchoredPosition.x
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606164476904, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606164476904, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606164476904, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606164476904, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606164476904, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606255359851, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606255359851, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -57301,21 +57430,6 @@ PrefabInstance:
propertyPath: m_SizeDelta.y propertyPath: m_SizeDelta.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2770326606541975714, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606541975714, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606541975714, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606580356017, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606580356017, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
@ -57369,129 +57483,126 @@ PrefabInstance:
- target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6, - target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3} type: 3}
propertyPath: m_AnchorMin.y propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606810438967, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606810438967, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4086661973484093150, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4086661973484093150, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4086661973484093150, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4086661973484093150, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4130681417131382466, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4130681417131382466, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5477557484795466913, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5477557484795466913, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8600850533622123873, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: FitItemImageInSlotImage
value: 1 value: 1
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] - target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 296.4995
objectReference: {fileID: 0}
- target: {fileID: 2770326606660306585, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -650
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606716970977, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606719424890, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606805154120, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Value
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2770326606805154120, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2770326606810438967, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2770326606810438967, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3684466523276116297, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Value
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3684466523276116297, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_Size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4508597830310062939, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4508597830310062939, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4508597830310062939, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8577955505915834254, guid: 9f005685dc17f4643b4a1156970fe2f6,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 2770326605851189363, guid: 9f005685dc17f4643b4a1156970fe2f6, type: 3}
- {fileID: 2109804768, guid: 9f005685dc17f4643b4a1156970fe2f6, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 9f005685dc17f4643b4a1156970fe2f6, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 9f005685dc17f4643b4a1156970fe2f6, type: 3}
--- !u!64 &3968453558880047856 --- !u!64 &3968453558880047856
MeshCollider: MeshCollider:

View File

@ -0,0 +1,290 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace SRF.UI.Layout
{
/// <summary>
/// Layout Group controller that arranges children in rows, fitting as many on a line until total width exceeds parent bounds
/// </summary>
//[AddComponentMenu(ComponentMenuPaths.FlowLayoutGroup)]
public class FlowLayoutGroup : LayoutGroup
{
public float Spacing = 0f;
public bool ChildForceExpandWidth = false;
public bool ChildForceExpandHeight = false;
private float _layoutHeight;
public override void CalculateLayoutInputHorizontal()
{
base.CalculateLayoutInputHorizontal();
var minWidth = GetGreatestMinimumChildWidth() + padding.left + padding.right;
SetLayoutInputForAxis(minWidth, -1, -1, 0);
}
public override void SetLayoutHorizontal()
{
SetLayout(rectTransform.rect.width, 0, false);
}
public override void SetLayoutVertical()
{
SetLayout(rectTransform.rect.width, 1, false);
}
public override void CalculateLayoutInputVertical()
{
_layoutHeight = SetLayout(rectTransform.rect.width, 1, true);
}
protected bool IsCenterAlign
{
get
{
return childAlignment == TextAnchor.LowerCenter || childAlignment == TextAnchor.MiddleCenter ||
childAlignment == TextAnchor.UpperCenter;
}
}
protected bool IsRightAlign
{
get
{
return childAlignment == TextAnchor.LowerRight || childAlignment == TextAnchor.MiddleRight ||
childAlignment == TextAnchor.UpperRight;
}
}
protected bool IsMiddleAlign
{
get
{
return childAlignment == TextAnchor.MiddleLeft || childAlignment == TextAnchor.MiddleRight ||
childAlignment == TextAnchor.MiddleCenter;
}
}
protected bool IsLowerAlign
{
get
{
return childAlignment == TextAnchor.LowerLeft || childAlignment == TextAnchor.LowerRight ||
childAlignment == TextAnchor.LowerCenter;
}
}
/// <summary>
/// Holds the rects that will make up the current row being processed
/// </summary>
private readonly IList<RectTransform> _rowList = new List<RectTransform>();
/// <summary>
/// Main layout method
/// </summary>
/// <param name="width">Width to calculate the layout with</param>
/// <param name="axis">0 for horizontal axis, 1 for vertical</param>
/// <param name="layoutInput">If true, sets the layout input for the axis. If false, sets child position for axis</param>
public float SetLayout(float width, int axis, bool layoutInput)
{
var groupHeight = rectTransform.rect.height;
// Width that is available after padding is subtracted
var workingWidth = rectTransform.rect.width - padding.left - padding.right;
// Accumulates the total height of the rows, including spacing and padding.
var yOffset = IsLowerAlign ? padding.bottom : (float)padding.top;
var currentRowWidth = 0f;
var currentRowHeight = 0f;
for (var i = 0; i < rectChildren.Count; i++) {
// LowerAlign works from back to front
var index = IsLowerAlign ? rectChildren.Count - 1 - i : i;
var child = rectChildren[index];
var childWidth = LayoutUtility.GetPreferredSize(child, 0);
var childHeight = LayoutUtility.GetPreferredSize(child, 1);
// Max child width is layout group with - padding
childWidth = Mathf.Min(childWidth, workingWidth);
// Apply spacing if not the first element in a row
if(_rowList.Count > 0)
currentRowWidth += Spacing;
// If adding this element would exceed the bounds of the row,
// go to a new line after processing the current row
if (currentRowWidth + childWidth > workingWidth) {
// Undo spacing addition if we're moving to a new line (Spacing is not applied on edges)
currentRowWidth -= Spacing;
// Process current row elements positioning
if (!layoutInput) {
var h = CalculateRowVerticalOffset(groupHeight, yOffset, currentRowHeight);
LayoutRow(_rowList, currentRowWidth, currentRowHeight, workingWidth, padding.left, h, axis);
}
// Clear existing row
_rowList.Clear();
// Add the current row height to total height accumulator, and reset to 0 for the next row
yOffset += currentRowHeight;
yOffset += Spacing;
currentRowHeight = 0;
currentRowWidth = 0;
}
currentRowWidth += childWidth;
_rowList.Add(child);
// We need the largest element height to determine the starting position of the next line
if (childHeight > currentRowHeight) {
currentRowHeight = childHeight;
}
}
if (!layoutInput) {
var h = CalculateRowVerticalOffset(groupHeight, yOffset, currentRowHeight);
// Layout the final row
LayoutRow(_rowList, currentRowWidth, currentRowHeight, workingWidth, padding.left, h, axis);
}
_rowList.Clear();
// Add the last rows height to the height accumulator
yOffset += currentRowHeight;
yOffset += IsLowerAlign ? padding.top : padding.bottom;
if (layoutInput) {
if(axis == 1)
SetLayoutInputForAxis(yOffset, yOffset, -1, axis);
}
return yOffset;
}
private float CalculateRowVerticalOffset(float groupHeight, float yOffset, float currentRowHeight)
{
float h;
if (IsLowerAlign) {
h = groupHeight - yOffset - currentRowHeight;
} else if (IsMiddleAlign) {
h = groupHeight*0.5f - _layoutHeight * 0.5f + yOffset;
} else {
h = yOffset;
}
return h;
}
protected void LayoutRow(IList<RectTransform> contents, float rowWidth, float rowHeight, float maxWidth, float xOffset, float yOffset, int axis)
{
var xPos = xOffset;
if (!ChildForceExpandWidth && IsCenterAlign)
xPos += (maxWidth - rowWidth) * 0.5f;
else if (!ChildForceExpandWidth && IsRightAlign)
xPos += (maxWidth - rowWidth);
var extraWidth = 0f;
if (ChildForceExpandWidth) {
var flexibleChildCount = 0;
for (var i = 0; i < _rowList.Count; i++) {
if (LayoutUtility.GetFlexibleWidth(_rowList[i]) > 0f)
flexibleChildCount ++;
}
if(flexibleChildCount > 0)
extraWidth = (maxWidth - rowWidth)/flexibleChildCount;
}
for (var j = 0; j < _rowList.Count; j++) {
var index = IsLowerAlign ? _rowList.Count - 1 - j : j;
var rowChild = _rowList[index];
var rowChildWidth = LayoutUtility.GetPreferredSize(rowChild, 0);
if (LayoutUtility.GetFlexibleWidth(rowChild) > 0f)
rowChildWidth += extraWidth;
var rowChildHeight = LayoutUtility.GetPreferredSize(rowChild, 1);
if (ChildForceExpandHeight)
rowChildHeight = rowHeight;
rowChildWidth = Mathf.Min(rowChildWidth, maxWidth);
var yPos = yOffset;
if (IsMiddleAlign)
yPos += (rowHeight - rowChildHeight) * 0.5f;
else if (IsLowerAlign)
yPos += (rowHeight - rowChildHeight);
if (axis == 0)
SetChildAlongAxis(rowChild, 0, xPos, rowChildWidth);
else
SetChildAlongAxis(rowChild, 1, yPos, rowChildHeight);
xPos += rowChildWidth + Spacing;
}
}
public float GetGreatestMinimumChildWidth()
{
var max = 0f;
for (var i = 0; i < rectChildren.Count; i++) {
var w = LayoutUtility.GetMinWidth(rectChildren[i]);
max = Mathf.Max(w, max);
}
return max;
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 463357a92a973b7439f40ce8d6e7aa74
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: