From b4784303ea2076a3509bd3d0c35887fdfb0210be Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Mon, 22 Jul 2024 12:57:27 +1200 Subject: [PATCH] chore: add select auth method scene to build script --- sample/Assets/Editor/MacBuilder.cs | 2 +- sample/Assets/Scenes/SelectAuthMethod.unity | 63 ++++++++++++++++++- .../Assets/Scenes/UnauthenticatedScene.unity | 63 ++++++++++++++++++- 3 files changed, 121 insertions(+), 7 deletions(-) diff --git a/sample/Assets/Editor/MacBuilder.cs b/sample/Assets/Editor/MacBuilder.cs index 2b12e8e2..a0505535 100644 --- a/sample/Assets/Editor/MacBuilder.cs +++ b/sample/Assets/Editor/MacBuilder.cs @@ -14,7 +14,7 @@ static void BuildForAltTester() { BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions(); buildPlayerOptions.scenes = new string[] { - "Assets/Scenes/UnauthenticatedScene.unity", "Assets/Scenes/AuthenticatedScene.unity" + "Assets/Scenes/SelectAuthMethod.unity", "Assets/Scenes/UnauthenticatedScene.unity", "Assets/Scenes/AuthenticatedScene.unity" }; buildPlayerOptions.locationPathName = "Builds/MacOS/SampleApp.app"; diff --git a/sample/Assets/Scenes/SelectAuthMethod.unity b/sample/Assets/Scenes/SelectAuthMethod.unity index 8c5c1e94..e4b5f0b3 100644 --- a/sample/Assets/Scenes/SelectAuthMethod.unity +++ b/sample/Assets/Scenes/SelectAuthMethod.unity @@ -123,6 +123,63 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1001 &18695636 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5695254695310732894, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_Name + value: AltTesterPrefab + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 3363dc30674e305438d727b310573f2f, type: 3} --- !u!1 &27701369 GameObject: m_ObjectHideFlags: 0 @@ -1218,7 +1275,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 3 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!114 &1192763474 MonoBehaviour: @@ -1793,7 +1850,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 2 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1586568890 GameObject: @@ -2147,7 +2204,7 @@ RectTransform: m_Children: - {fileID: 1238552242} m_Father: {fileID: 0} - m_RootOrder: 1 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0} diff --git a/sample/Assets/Scenes/UnauthenticatedScene.unity b/sample/Assets/Scenes/UnauthenticatedScene.unity index 23a73dcc..3037439f 100644 --- a/sample/Assets/Scenes/UnauthenticatedScene.unity +++ b/sample/Assets/Scenes/UnauthenticatedScene.unity @@ -367,6 +367,63 @@ RectTransform: m_AnchoredPosition: {x: -0.000030040741, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0, y: 1} +--- !u!1001 &119869053 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_RootOrder + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3563188778420322651, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5695254695310732894, guid: 3363dc30674e305438d727b310573f2f, type: 3} + propertyPath: m_Name + value: AltTesterPrefab + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 3363dc30674e305438d727b310573f2f, type: 3} --- !u!1 &160623835 GameObject: m_ObjectHideFlags: 0 @@ -1935,7 +1992,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 3 + m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1201663674 GameObject: @@ -2204,7 +2261,7 @@ Transform: m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_RootOrder: 2 + m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1582459300 GameObject: @@ -2540,7 +2597,7 @@ RectTransform: - {fileID: 1582459301} - {fileID: 172384059} m_Father: {fileID: 0} - m_RootOrder: 1 + m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0, y: 0} m_AnchorMax: {x: 0, y: 0}