浏览代码

Updated UI so it's resolution independent

/AdsTesting
Ciro Continisio 4 年前
当前提交
12005296
共有 6 个文件被更改,包括 90 次插入185 次删除
  1. 26
      Assets/Prefabs/GameplayCanvas.prefab
  2. 32
      Assets/Scenes/Level_00.unity
  3. 5
      Assets/Scenes/Level_02.unity
  4. 42
      Assets/Scenes/LoadingScene.unity
  5. 44
      Assets/Scenes/MainMenu.unity
  6. 126
      Assets/Scenes/Store.unity

26
Assets/Prefabs/GameplayCanvas.prefab


- component: {fileID: 7702242263051669515}
- component: {fileID: 7702242263051669514}
m_Layer: 5
m_Name: Image
m_Name: KeyIcon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

m_Father: {fileID: 7702242264122354704}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.79200006, y: 0.9005239}
m_AnchorMax: {x: 0.95864505, y: 0.9705239}
m_AnchoredPosition: {x: -1.2000122, y: 0.013000488}
m_SizeDelta: {x: -1.7501221, y: -5.175766}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -29, y: -38.640137}
m_SizeDelta: {x: 185, y: 134}
m_Pivot: {x: 1, y: 1}
--- !u!222 &7702242263051669515
CanvasRenderer:

- component: {fileID: 7702242263277782302}
- component: {fileID: 7702242263277782301}
m_Layer: 5
m_Name: Button
m_Name: ExitButton
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

m_Father: {fileID: 7702242264122354704}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.052644987, y: 0.91028583}
m_AnchorMax: {x: 0.15835501, y: 0.9705239}
m_AnchoredPosition: {x: -2.600006, y: -0.2999878}
m_SizeDelta: {x: 1.6079559, y: -0.39204407}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 45, y: -45}
m_SizeDelta: {x: 119, y: 117}
m_Pivot: {x: 0, y: 1}
--- !u!222 &7702242263277782303
CanvasRenderer:

m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_UiScaleMode: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ReferenceResolution: {x: 1080, y: 1920}
m_MatchWidthOrHeight: 0
m_MatchWidthOrHeight: 1
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96

32
Assets/Scenes/Level_00.unity


m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 7702242263051669513, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0.012939453
objectReference: {fileID: 0}
- target: {fileID: 7702242263277782300, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_AnchoredPosition.x
value: -2.6000366
objectReference: {fileID: 0}
- target: {fileID: 7702242263277782300, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_AnchoredPosition.y
value: -0.30004883
objectReference: {fileID: 0}
- target: {fileID: 7702242264122354704, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_Pivot.x

propertyPath: m_Name
value: GameplayCanvas
objectReference: {fileID: 0}
- target: {fileID: 8629169230329452818, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_KeyIndicator
value:
objectReference: {fileID: 122326358}
--- !u!114 &122326358 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 7702242263051669514, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
m_PrefabInstance: {fileID: 122326357}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &155182938
GameObject:
m_ObjectHideFlags: 0

5
Assets/Scenes/Level_02.unity


m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 7702242263277782300, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_AnchoredPosition.x
value: -2.5999756
objectReference: {fileID: 0}
- target: {fileID: 7702242264122354704, guid: 11482ef509975be43bcaf454f9771aed,
type: 3}
propertyPath: m_Pivot.x

42
Assets/Scenes/LoadingScene.unity


m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: 0, y: 13.3}
m_AnchoredPosition: {x: 0, y: 189}
m_SizeDelta: {x: -99.49426, y: 152.86337}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &53019761

m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 8ac7df0ac2068ea49881d11d93ea8f3f, type: 3}
m_FontSize: 30
m_FontSize: 70
m_BestFit: 1
m_BestFit: 0
m_MinSize: 1
m_MaxSize: 80
m_Alignment: 4

m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_UiScaleMode: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ReferenceResolution: {x: 1080, y: 1960}
m_MatchWidthOrHeight: 0
m_MatchWidthOrHeight: 1
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96

m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 8ac7df0ac2068ea49881d11d93ea8f3f, type: 3}
m_FontSize: 14
m_FontSize: 70
m_BestFit: 1
m_MinSize: 10
m_MaxSize: 40
m_BestFit: 0
m_MinSize: 0
m_MaxSize: 70
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1

m_Father: {fileID: 1562072775}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.13015988, y: 0.28800002}
m_AnchorMax: {x: 0.8727101, y: 0.4514762}
m_AnchoredPosition: {x: -1.0589905, y: -0.36401367}
m_SizeDelta: {x: -7.1361694, y: 0.33862305}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: 0, y: -0.000015259}
m_SizeDelta: {x: -291.13617, y: 321.33862}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1880866496
MonoBehaviour:

m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Transition: 0
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_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_Interactable: 0
m_TargetGraphic: {fileID: 0}
m_FillRect: {fileID: 1020116464}
m_HandleRect: {fileID: 0}

m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_Maskable: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []

m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!224 &1956782724
RectTransform:
m_ObjectHideFlags: 0

m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: -350}
m_SizeDelta: {x: 320, y: 60}
m_AnchoredPosition: {x: 0, y: -223}
m_SizeDelta: {x: 621.14185, y: 166.45955}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1956782725
MonoBehaviour:

m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: a512d14411b08994598f9e73ed6ab6cc, type: 3}
m_Type: 0
m_Type: 2
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4

44
Assets/Scenes/MainMenu.unity


m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 8ac7df0ac2068ea49881d11d93ea8f3f, type: 3}
m_FontSize: 10
m_FontSize: 66
m_BestFit: 1
m_BestFit: 0
m_MaxSize: 60
m_MaxSize: 79
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1

m_Calls: []
m_FontData:
m_Font: {fileID: 12800000, guid: 8ac7df0ac2068ea49881d11d93ea8f3f, type: 3}
m_FontSize: 14
m_FontSize: 66
m_BestFit: 1
m_MinSize: 14
m_MaxSize: 60
m_BestFit: 0
m_MinSize: 3
m_MaxSize: 79
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1

m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_UiScaleMode: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ReferenceResolution: {x: 1080, y: 1920}
m_MatchWidthOrHeight: 0
m_MatchWidthOrHeight: 1
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96

m_Father: {fileID: 1140220495}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.22877507, y: 0.514}
m_AnchorMax: {x: 0.77122504, y: 0.82047623}
m_AnchoredPosition: {x: 0, y: 1}
m_SizeDelta: {x: 0, y: -2}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 0, y: -246}
m_SizeDelta: {x: 835.886, y: 835.886}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &1402112333
MonoBehaviour:

m_Father: {fileID: 1140220495}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.24828999, y: 0.3754286}
m_AnchorMax: {x: 0.76448506, y: 0.45976192}
m_AnchoredPosition: {x: -1, y: 0}
m_SizeDelta: {x: 3.8904114, y: -0.98028564}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 4.5, y: -1258.2}
m_SizeDelta: {x: 632.17456, y: 161.79958}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1893815542
MonoBehaviour:

m_Father: {fileID: 1140220495}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.24828999, y: 0.24900001}
m_AnchorMax: {x: 0.76448506, y: 0.33123812}
m_AnchoredPosition: {x: -1, y: -0.5}
m_SizeDelta: {x: 3.8904114, y: 2.0197144}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 4.5, y: -1506.5}
m_SizeDelta: {x: 632.17456, y: 161.79965}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2018716880
MonoBehaviour:

126
Assets/Scenes/Store.unity


m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 6
m_RootOrder: 5
m_LocalEulerAnglesHint: {x: 29.155, y: 166.559, z: -66.429}
--- !u!1 &367230400
GameObject:

m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 48.915, y: -30.000002, z: 0}
--- !u!1001 &431199130
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalPosition.x
value: -3.3274033
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalPosition.y
value: -0.109148726
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalPosition.z
value: 2.552061
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622123, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7356380717090622125, guid: d8e9e493da0735346a9e17cf1b363eab,
type: 3}
propertyPath: m_Name
value: GameManager
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d8e9e493da0735346a9e17cf1b363eab, type: 3}
--- !u!1 &611063633
GameObject:
m_ObjectHideFlags: 0

m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_UiScaleMode: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ReferenceResolution: {x: 1080, y: 1920}
m_MatchWidthOrHeight: 0
m_MatchWidthOrHeight: 1
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96

m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 7
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1427757659
GameObject:

m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1427757659}
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_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
m_AnchoredPosition: {x: 110, y: -120}
m_SizeDelta: {x: 69.16199, y: 134.56003}
m_Pivot: {x: 0, y: 0.5}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -340, y: -276.00003}
m_SizeDelta: {x: 195.27527, y: 379.92328}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1427757661
MonoBehaviour:
m_ObjectHideFlags: 0

m_Father: {fileID: 1140220495}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 0.5}
m_AnchorMax: {x: 1, y: 0.5}
m_AnchoredPosition: {x: -56.200012, y: -120}
m_SizeDelta: {x: 69.16199, y: 134.56003}
m_Pivot: {x: 1, y: 0.5}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 340, y: -276}
m_SizeDelta: {x: 195.27527, y: 379.92328}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1893815542
MonoBehaviour:
m_ObjectHideFlags: 0

- target: {fileID: -8679921383154817045, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}
propertyPath: m_RootOrder
value: 5
value: 4
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 9f5858cf2c3ec59428254c8fff5e9130,
type: 3}

m_Father: {fileID: 1140220495}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.052644987, y: 0.91028583}
m_AnchorMax: {x: 0.15835501, y: 0.9705239}
m_AnchoredPosition: {x: -2.5999756, y: -0.2999878}
m_SizeDelta: {x: 1.6079559, y: -0.39204407}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 45, y: -45}
m_SizeDelta: {x: 119, y: 117}
m_Pivot: {x: 0, y: 1}
--- !u!114 &2018716880
MonoBehaviour:

m_TargetGraphic: {fileID: 2018716881}
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 11400000, guid: a9f6da264584558478e57f0d26b9befb, type: 2}
m_MethodName: ExitGameplay
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
--- !u!114 &2018716881
MonoBehaviour:
m_ObjectHideFlags: 0

m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_Maskable: 0
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []

正在加载...
取消
保存