Files
Magical-Jumping-Bean/Library/metadata/30/306cc8c2b49d7114eaa3623786fc2126
T

227 lines
14 KiB
Plaintext
Raw Normal View History

2019-09-29 19:40:54 -04:00
í7”2019.2.3f1þÿÿÿÿÿ’3$øÌuñ옲e+ Í=^7€ÿÿÿÿ€¦€²€Ѐ¦€¦€¦€#¦€+H€3ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€ Q€j€
H€<ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€Õ€Iÿÿÿÿ€1€1€ÿÿÿÿÀÞ€€H€j€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€™€PAssetMetaDataguiddata[0]data[1]data[2]data[3]pathNameoriginalNamelabelsassetStoreRef ÿÿfš†!ë5˜9Ý4QÁóBí7€ÿÿÿÿ€¦€²€
E€ Þ€#€.€,€5a€ Þ€#€.€,€†€r€ Þ€# €.€,
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€ñ€JÿÿÿÿÀ1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€\›€ÿÿÿÿ€H€rÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€wÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€H€€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€#!€.€,"€€…ÿÿÿÿ#@1€1€ÿÿÿÿ$Þ€€%.€j€&Õ€“ÿÿÿÿ'€1€1€ÿÿÿÿ(ÀÞ€€)€j€ÿÿÿÿ*€H€›€ÿÿÿÿ+€1€1€ÿÿÿÿ,@Þ€€-Q€j€.y€
€ /Þ€#0€.€,1€ €§2@¾€¶ 3@Þ€#4€.€,5€H€»ÿÿÿÿ6€1€1€ÿÿÿÿ7@Þ€€8Q€j€9H€Æÿÿÿÿ:€1€1€ÿÿÿÿ;@Þ€€<Q€j€=H€Øÿÿÿÿ>€1€1€ÿÿÿÿ?@Þ€€@Q€j€AMonoImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariantsÿÿ£Gñ×Ü�Z56 :!@iÁJ*�€7€ÿÿÿÿ€¦€²€E€ Þ€€.€€(a€ Þ€€.€€†€r€ Þ€ €.€
€H€«€ÿÿÿÿ €1€1€ÿÿÿÿ @Þ€€
Q€j€H€ê€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€ñ€=ÿÿÿÿ€1€1€ÿÿÿÿ€Þ€€€j€ÿÿÿÿ€H€›€ÿÿÿÿ€1€1€ÿÿÿÿ@Þ€€Q€j€y€
€ Þ€€.€€y€Q Þ€€.€ €Þ€X!H€iÿÿÿÿ"€1€1€ÿÿÿÿ#@Þ€€$Q€j€%H€uÿÿÿÿ&€1€1€ÿÿÿÿ'@Þ€€(Q€j€)PPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacehh\ày¯È¼#ÆŒ,KÙA®:&shÏb?Packages/com.unity.ugui/Runtime/UI/Core/Layout/LayoutElement.csày¯
LayoutElement@#using UnityEngine.EventSystems;
namespace UnityEngine.UI
{
[AddComponentMenu("Layout/Layout Element", 140)]
[RequireComponent(typeof(RectTransform))]
[ExecuteAlways]
/// <summary>
/// Add this component to a GameObject to make it into a layout element or override values on an existing layout element.
/// </summary>
public class LayoutElement : UIBehaviour, ILayoutElement, ILayoutIgnorer
{
[SerializeField] private bool m_IgnoreLayout = false;
[SerializeField] private float m_MinWidth = -1;
[SerializeField] private float m_MinHeight = -1;
[SerializeField] private float m_PreferredWidth = -1;
[SerializeField] private float m_PreferredHeight = -1;
[SerializeField] private float m_FlexibleWidth = -1;
[SerializeField] private float m_FlexibleHeight = -1;
[SerializeField] private int m_LayoutPriority = 1;
/// <summary>
/// Should this RectTransform be ignored by the layout system?
/// </summary>
/// <remarks>
/// Setting this property to true will make a parent layout group component not consider this RectTransform part of the group. The RectTransform can then be manually positioned despite being a child GameObject of a layout group.
/// </remarks>
public virtual bool ignoreLayout { get { return m_IgnoreLayout; } set { if (SetPropertyUtility.SetStruct(ref m_IgnoreLayout, value)) SetDirty(); } }
public virtual void CalculateLayoutInputHorizontal() {}
public virtual void CalculateLayoutInputVertical() {}
/// <summary>
/// The minimum width this layout element may be allocated.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when using UI elements.
///
/// public class ExampleClass : MonoBehaviour
/// {
/// public Transform MyContentPanel;
///
/// //Sets the flexible height on on all children in the content panel.
/// public void Start()
/// {
/// //Assign all the children of the content panel to an array.
/// LayoutElement[] myLayoutElements = MyContentPanel.GetComponentsInChildren<LayoutElement>();
///
/// //For each child in the array change its LayoutElement's minimum width size to 200.
/// foreach (LayoutElement element in myLayoutElements)
/// {
/// element.minWidth = 200f;
/// }
/// }
/// }
/// </code>
/// </example>
public virtual float minWidth { get { return m_MinWidth; } set { if (SetPropertyUtility.SetStruct(ref m_MinWidth, value)) SetDirty(); } }
/// <summary>
/// The minimum height this layout element may be allocated.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when using UI elements.
///
/// public class ExampleClass : MonoBehaviour
/// {
/// public Transform MyContentPanel;
///
/// //Sets the flexible height on on all children in the content panel.
/// public void Start()
/// {
/// //Assign all the children of the content panel to an array.
/// LayoutElement[] myLayoutElements = MyContentPanel.GetComponentsInChildren<LayoutElement>();
///
/// //For each child in the array change its LayoutElement's minimum height size to 64.
/// foreach (LayoutElement element in myLayoutElements)
/// {
/// element.minHeight = 64f;
/// }
/// }
/// }
/// </code>
/// </example>
public virtual float minHeight { get { return m_MinHeight; } set { if (SetPropertyUtility.SetStruct(ref m_MinHeight, value)) SetDirty(); } }
/// <summary>
/// The preferred width this layout element should be allocated if there is sufficient space. The preferredWidth can be set to -1 to remove the size.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when using UI elements.
///
/// public class ExampleClass : MonoBehaviour
/// {
/// public Transform MyContentPanel;
///
/// //Sets the flexible height on on all children in the content panel.
/// public void Start()
/// {
/// //Assign all the children of the content panel to an array.
/// LayoutElement[] myLayoutElements = MyContentPanel.GetComponentsInChildren<LayoutElement>();
///
/// //For each child in the array change its LayoutElement's preferred width size to 250.
/// foreach (LayoutElement element in myLayoutElements)
/// {
/// element.preferredWidth = 250f;
/// }
/// }
/// }
/// </code>
/// </example>
public virtual float preferredWidth { get { return m_PreferredWidth; } set { if (SetPropertyUtility.SetStruct(ref m_PreferredWidth, value)) SetDirty(); } }
/// <summary>
/// The preferred height this layout element should be allocated if there is sufficient space.
/// </summary>
/// <example>
/// <code>
/// using UnityEngine;
/// using System.Collections;
/// using UnityEngine.UI; // Required when using UI elements.
///
/// public class ExampleClass : MonoBehaviour
/// {
/// public Transform MyContentPanel;
///
/// //Sets the flexible height on on all children in the content panel.
/// public void Start()
/// {
/// //Assign all the children of the content panel to an array.
/// LayoutElement[] myLayoutElements = MyContentPanel.GetComponentsInChildren<LayoutElement>();
///
/// //For each child in the array change its LayoutElement's preferred height size to 100.
/// foreach (LayoutElement element in myLayoutElements)
/// {
/// element.preferredHeight = 100f;
/// }
/// }
/// }
/// </code>
/// </example>
public virtual float preferredHeight { get { return m_PreferredHeight; } set { if (SetPropertyUtility.SetStruct(ref m_PreferredHeight, value)) SetDirty(); } }
/// <summary>
/// The extra relative width this layout element should be allocated if there is additional available space.
/// </summary>
public virtual float flexibleWidth { get { return m_FlexibleWidth; } set { if (SetPropertyUtility.SetStruct(ref m_FlexibleWidth, value)) SetDirty(); } }
/// <summary>
/// The extra relative height this layout element should be allocated if there is additional available space.
/// </summary>
public virtual float flexibleHeight { get { return m_FlexibleHeight; } set { if (SetPropertyUtility.SetStruct(ref m_FlexibleHeight, value)) SetDirty(); } }
/// <summary>
/// The Priority of layout this element has.
/// </summary>
public virtual int layoutPriority { get { return m_LayoutPriority; } set { if (SetPropertyUtility.SetStruct(ref m_LayoutPriority, value)) SetDirty(); } }
protected LayoutElement()
{}
protected override void OnEnable()
{
base.OnEnable();
SetDirty();
}
protected override void OnTransformParentChanged()
{
SetDirty();
}
protected override void OnDisable()
{
SetDirty();
base.OnDisable();
}
protected override void OnDidApplyAnimationProperties()
{
SetDirty();
}
protected override void OnBeforeTransformParentChanged()
{
SetDirty();
}
/// <summary>
/// Mark the LayoutElement as dirty.
/// </summary>
/// <remarks>
/// This will make the auto layout system process this element on the next layout pass. This method should be called by the LayoutElement whenever a change is made that potentially affects the layout.
/// </remarks>
protected void SetDirty()
{
if (!IsActive())
return;
LayoutRebuilder.MarkLayoutForRebuild(transform as RectTransform);
}
#if UNITY_EDITOR
protected override void OnValidate()
{
SetDirty();
}