Files
Magical-Jumping-Bean/Library/metadata/01/01df650e1b86e9f4a8e2b5dc9782506f
T

160 lines
11 KiB
Plaintext
Raw Normal View History

2019-09-29 19:40:54 -04:00
í-h2019.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€jH€wÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jH€€ÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jy
 Þ€#!.€,"€…ÿÿÿÿ#@1€1€ÿÿÿÿ$Þ%.€j&Õ€“ÿÿÿÿ'1€1€ÿÿÿÿ(ÀÞ)€j€ÿÿÿÿ*H€›€ÿÿÿÿ+1€1€ÿÿÿÿ,@Þ-Q€j.y
 /Þ€#0.€,1 €§2@¾€¶ 3@Þ€#4.€,5H€»ÿÿÿÿ61€1€ÿÿÿÿ7@Þ8Q€j9H€Æÿÿÿÿ:1€1€ÿÿÿÿ;@Þ<Q€j=H€Øÿÿÿÿ>1€1€ÿÿÿÿ?@Þ@Q€jAMonoImporterPPtr<EditorExtension>m_FileIDm_PathIDPPtr<PrefabInstance>m_ExternalObjectsSourceAssetIdentifiertypeassemblynamem_UsedFileIDsm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariantsÿÿ£Gñ×ÜZ56 :!@iÁJ*€7€ÿÿÿÿ¦€²E Þ.(a Þ.€r Þ .
H€«€ÿÿÿÿ 1€1€ÿÿÿÿ @Þ
Q€jH€ê€ÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jñ€=ÿÿÿÿ1€1€ÿÿÿÿÞ€j€ÿÿÿÿH€›€ÿÿÿÿ1€1€ÿÿÿÿ@ÞQ€jy
 Þ.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_Namespace\ày¯àxýVà±hžOŠ.[Íy(öXPackages/com.unity.ugui/Tests/Runtime/NestedLayout/SceneWithNestedLayoutElementsLoads.csày¯"SceneWithNestedLayoutElementsLoadsáusing System;
using UnityEngine.UI;
using UnityEngine.TestTools;
using NUnit.Framework;
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
[TestFixture]
[Category("RegressionTest")]
public class SceneWithNestedLayoutElementsLoad : IPrebuildSetup
{
Scene m_InitScene;
public void Setup()
{
#if UNITY_EDITOR
Action aspectRatioFitterSceneCreation = delegate()
{
var canvasGO = new GameObject("Canvas", typeof(Canvas), typeof(CanvasScaler));
var panelGO = new GameObject("Panel", typeof(UnityEngine.UI.Image), typeof(AspectRatioFitter));
var imageGO = new GameObject("Image", typeof(UnityEngine.UI.RawImage), typeof(AspectRatioFitter));
panelGO.transform.SetParent(canvasGO.transform);
imageGO.transform.SetParent(panelGO.transform);
var panelARF = panelGO.GetComponent<AspectRatioFitter>();
panelARF.aspectMode = AspectRatioFitter.AspectMode.EnvelopeParent;
panelARF.aspectRatio = 1.98f;
var iamgeARF = imageGO.GetComponent<AspectRatioFitter>();
iamgeARF.aspectMode = AspectRatioFitter.AspectMode.None;
iamgeARF.aspectRatio = 1f;
new GameObject("GameObject", typeof(SceneWithNestedLayoutElementsLoadScript));
};
CreateSceneUtility.CreateScene("AspectRatioFitter", aspectRatioFitterSceneCreation);
Action contentSizeFitterSceneCreation = delegate()
{
var canvasGO = new GameObject("Canvas", typeof(Canvas), typeof(CanvasScaler));
var panelGO = new GameObject("Panel", typeof(UnityEngine.UI.Image), typeof(ContentSizeFitter), typeof(LayoutElement));
var imageGO = new GameObject("Image", typeof(UnityEngine.UI.RawImage), typeof(ContentSizeFitter), typeof(LayoutElement));
panelGO.transform.SetParent(canvasGO.transform);
imageGO.transform.SetParent(panelGO.transform);
var panelCSF = panelGO.GetComponent<ContentSizeFitter>();
panelCSF.horizontalFit = ContentSizeFitter.FitMode.PreferredSize;
panelCSF.verticalFit = ContentSizeFitter.FitMode.PreferredSize;
var panelLE = panelGO.GetComponent<LayoutElement>();
panelLE.preferredWidth = 200f;
panelLE.preferredHeight = 200f;
var imageCSF = imageGO.GetComponent<ContentSizeFitter>();
imageCSF.horizontalFit = ContentSizeFitter.FitMode.PreferredSize;
imageCSF.verticalFit = ContentSizeFitter.FitMode.PreferredSize;
var imageLE = imageGO.GetComponent<LayoutElement>();
imageLE.preferredWidth = 100f;
imageLE.preferredHeight = 100f;
new GameObject("GameObject", typeof(SceneWithNestedLayoutElementsLoadScript));
};
CreateSceneUtility.CreateScene("ContentSizeFitter", contentSizeFitterSceneCreation);
Action layoutGroupSceneCreation = delegate()
{
var canvasGO = new GameObject("Canvas", typeof(Canvas), typeof(CanvasScaler), typeof(GridLayoutGroup));
var panelGO = new GameObject("Panel (0)", typeof(UnityEngine.UI.Image), typeof(GridLayoutGroup), typeof(LayoutElement));
var imageGOOne = new GameObject("Image", typeof(UnityEngine.UI.RawImage), typeof(LayoutElement));
var imageGOTwo = new GameObject("Image", typeof(UnityEngine.UI.RawImage), typeof(LayoutElement));
panelGO.transform.SetParent(canvasGO.transform);
imageGOOne.transform.SetParent(panelGO.transform);
imageGOTwo.transform.SetParent(panelGO.transform);
var panelLE = panelGO.GetComponent<LayoutElement>();
panelLE.preferredWidth = 100f;
panelLE.preferredHeight = 100f;
var imageOneLE = imageGOOne.GetComponent<LayoutElement>();
imageOneLE.preferredWidth = 100f;
imageOneLE.preferredHeight = 100f;
var imageTwoLE = imageGOOne.GetComponent<LayoutElement>();
imageTwoLE.preferredWidth = 100f;
imageTwoLE.preferredHeight = 100f;
// Duplicate the first panel we created.
GameObject.Instantiate(panelGO, canvasGO.transform);
new GameObject("GameObject", typeof(SceneWithNestedLayoutElementsLoadScript));
};
CreateSceneUtility.CreateScene("LayoutGroup", layoutGroupSceneCreation);
#endif
}
[UnityTest]
public IEnumerator SceneWithNestedAspectRatioFitterLoads()
{
AsyncOperation operation = SceneManager.LoadSceneAsync("AspectRatioFitter", LoadSceneMode.Additive);
yield return operation;
SceneManager.SetActiveScene(SceneManager.GetSceneByName("AspectRatioFitter"));
var go = GameObject.Find("GameObject");
var component = go.GetComponent<SceneWithNestedLayoutElementsLoadScript>();
yield return new WaitUntil(() => component.isStartCalled);
SceneManager.UnloadSceneAsync("AspectRatioFitter");
}
[UnityTest]
public IEnumerator SceneWithNestedContentSizeFitterLoads()
{
AsyncOperation operation = SceneManager.LoadSceneAsync("ContentSizeFitter", LoadSceneMode.Additive);
yield return operation;
SceneManager.SetActiveScene(SceneManager.GetSceneByName("ContentSizeFitter"));
var go = GameObject.Find("GameObject");
var component = go.GetComponent<SceneWithNestedLayoutElementsLoadScript>();
yield return new WaitUntil(() => component.isStartCalled);
SceneManager.UnloadSceneAsync("ContentSizeFitter");
}
[UnityTest]
public IEnumerator SceneWithNestedLayoutGroupLoads()
{
AsyncOperation operation = SceneManager.LoadSceneAsync("LayoutGroup", LoadSceneMode.Additive);
yield return operation;
SceneManager.SetActiveScene(SceneManager.GetSceneByName("LayoutGroup"));
var go = GameObject.Find("GameObject");
var component = go.GetComponent<SceneWithNestedLayoutElementsLoadScript>();
yield return new WaitUntil(() => component.isStartCalled);
SceneManager.UnloadSceneAsync("LayoutGroup");
}
[SetUp]
public void TestSetup()
{
m_InitScene = SceneManager.GetActiveScene();
}
[TearDown]
public void TearDown()
{