Skip to content

Commit

Permalink
added in/out transitions for quit button
Browse files Browse the repository at this point in the history
  • Loading branch information
Rellac-Rellac committed Feb 20, 2021
1 parent afd670d commit f2b0d06
Show file tree
Hide file tree
Showing 15 changed files with 280 additions and 10 deletions.
14 changes: 13 additions & 1 deletion Assets/UIManager/Example/UI/Fancy/Main/Panels/Intro.asset
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,19 @@ MonoBehaviour:
m_Calls: []
onPanelTransitionedIn:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 11400000, guid: c4c5b667ab5d3ed40a9067b986412b48, type: 2}
m_TargetAssemblyTypeName: Rellac.UI.UIManager, Assembly-CSharp
m_MethodName: Clear
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
onPanelTransitionOutStarted:
m_PersistentCalls:
m_Calls: []
Expand Down
30 changes: 30 additions & 0 deletions Assets/UIManager/Example/UI/Fancy/Quit/Panels/Button.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b7151bd5aa65050498da035e89a1fd2c, type: 3}
m_Name: Button
m_EditorClassIdentifier:
panelPrefab: {fileID: 7310082749242407402, guid: cd4058c37b71a584192c934b5d251a05, type: 3}
transition: {fileID: 11400000, guid: 4f0ed94abf0fa9d42a3dbd467e37090f, type: 2}
animationSpeed: 0.5
blockPassOver: 0
onPanelInstantiated:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedIn:
m_PersistentCalls:
m_Calls: []
onPanelTransitionOutStarted:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedOut:
m_PersistentCalls:
m_Calls: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ MonoBehaviour:
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b7151bd5aa65050498da035e89a1fd2c, type: 3}
m_Name: Out
m_Name: Out-ToButton
m_EditorClassIdentifier:
panelPrefab: {fileID: 7310082749242407402, guid: 644446588dcf4544d9f7788eff295776, type: 3}
transition: {fileID: 11400000, guid: b0082def2e867b440918de7f597107ad, type: 2}
animationSpeed: 1
animationSpeed: 0.5
blockPassOver: 0
onPanelInstantiated:
m_PersistentCalls:
Expand Down
30 changes: 30 additions & 0 deletions Assets/UIManager/Example/UI/Fancy/Quit/Panels/Out-ToVisible.asset
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b7151bd5aa65050498da035e89a1fd2c, type: 3}
m_Name: Out-ToVisible
m_EditorClassIdentifier:
panelPrefab: {fileID: 7310082749242407402, guid: f4693b3b88a9c1844b5dd2cc65d39ef8, type: 3}
transition: {fileID: 11400000, guid: b0082def2e867b440918de7f597107ad, type: 2}
animationSpeed: 1
blockPassOver: 1
onPanelInstantiated:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedIn:
m_PersistentCalls:
m_Calls: []
onPanelTransitionOutStarted:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedOut:
m_PersistentCalls:
m_Calls: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
panelPrefab: {fileID: 279350631335870203, guid: 736d3a77cbb037843aa575e33dbfc184, type: 3}
transition: {fileID: 11400000, guid: 4f0ed94abf0fa9d42a3dbd467e37090f, type: 2}
animationSpeed: 1
animationSpeed: 0.5
blockPassOver: 1
onPanelInstantiated:
m_PersistentCalls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ MonoBehaviour:
m_MethodName: SetPanel
m_Mode: 2
m_Arguments:
m_ObjectArgument: {fileID: 11400000, guid: 7c12d4628ef5e9640a8a924cfae49cc8, type: 2}
m_ObjectArgument: {fileID: 11400000, guid: 8cca14e8dbc77fa449eb069633604d9e, type: 2}
m_ObjectArgumentAssemblyTypeName: Rellac.UI.UIPanel, Assembly-CSharp
m_IntArgument: 0
m_FloatArgument: 0
Expand All @@ -223,7 +223,7 @@ GameObject:
- component: {fileID: 2313769001527412709}
- component: {fileID: 4297686348619348326}
m_Layer: 5
m_Name: Out
m_Name: Button
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions Assets/UIManager/Example/UI/Fancy/Quit/Prefabs/Out-ToButton.prefab
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7310082749242407402
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 155322251604055465}
- component: {fileID: 2313769001527412709}
- component: {fileID: 4297686348619348326}
m_Layer: 5
m_Name: Out
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &155322251604055465
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7310082749242407402}
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: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2313769001527412709
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7310082749242407402}
m_CullTransparentMesh: 0
--- !u!114 &4297686348619348326
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7310082749242407402}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea31ea6feef6a5449be4544f2dd0255c, type: 3}
m_Name:
m_EditorClassIdentifier:
panel: {fileID: 11400000, guid: 8bd84c6a9b7ee4d4593ae58a633423fe, type: 2}
onPanelInstantiated:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedIn:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 11400000, guid: c4c5b667ab5d3ed40a9067b986412b48, type: 2}
m_TargetAssemblyTypeName: Rellac.UI.UIManager, Assembly-CSharp
m_MethodName: SetPanel
m_Mode: 2
m_Arguments:
m_ObjectArgument: {fileID: 11400000, guid: 13c42aaad57afcc42bcedbca8c2272b9, type: 2}
m_ObjectArgumentAssemblyTypeName: Rellac.UI.UIPanel, Assembly-CSharp
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
onPanelTransitionOutStarted:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedOut:
m_PersistentCalls:
m_Calls: []
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &7310082749242407402
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 155322251604055465}
- component: {fileID: 2313769001527412709}
- component: {fileID: 4297686348619348326}
m_Layer: 5
m_Name: Out-ToVisible
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &155322251604055465
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7310082749242407402}
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: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &2313769001527412709
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7310082749242407402}
m_CullTransparentMesh: 0
--- !u!114 &4297686348619348326
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7310082749242407402}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ea31ea6feef6a5449be4544f2dd0255c, type: 3}
m_Name:
m_EditorClassIdentifier:
panel: {fileID: 11400000, guid: 8cca14e8dbc77fa449eb069633604d9e, type: 2}
onPanelInstantiated:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedIn:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 11400000, guid: c4c5b667ab5d3ed40a9067b986412b48, type: 2}
m_TargetAssemblyTypeName: Rellac.UI.UIManager, Assembly-CSharp
m_MethodName: SetPanel
m_Mode: 2
m_Arguments:
m_ObjectArgument: {fileID: 11400000, guid: 7c12d4628ef5e9640a8a924cfae49cc8, type: 2}
m_ObjectArgumentAssemblyTypeName: Rellac.UI.UIPanel, Assembly-CSharp
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 1
m_CallState: 2
onPanelTransitionOutStarted:
m_PersistentCalls:
m_Calls: []
onPanelTransitionedOut:
m_PersistentCalls:
m_Calls: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Assets/UIManager/Example/UI/Fancy/Quit/Prefabs/Visible.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ MonoBehaviour:
m_CallState: 2
- m_Target: {fileID: 11400000, guid: c4c5b667ab5d3ed40a9067b986412b48, type: 2}
m_TargetAssemblyTypeName: Rellac.UI.UIManager, Assembly-CSharp
m_MethodName: Clear
m_Mode: 1
m_MethodName: SetPanel
m_Mode: 2
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_ObjectArgument: {fileID: 11400000, guid: 8bd84c6a9b7ee4d4593ae58a633423fe, type: 2}
m_ObjectArgumentAssemblyTypeName: Rellac.UI.UIPanel, Assembly-CSharp
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
Expand Down

0 comments on commit f2b0d06

Please sign in to comment.