fixed menus not working with keeb / controller

This commit is contained in:
cyndrdev 2021-03-22 02:20:38 +00:00
parent 7893db3d19
commit dd1924143f
3 changed files with 209 additions and 11 deletions

View File

@ -272,6 +272,17 @@ RectTransform:
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 28}
m_Pivot: {x: 0.5, y: 1}
--- !u!114 &119899795 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 5361961963888605352, guid: e6408f5c817f33a41a28fec7a44e2120, type: 3}
m_PrefabInstance: {fileID: 1468005599}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &236258621
GameObject:
m_ObjectHideFlags: 0
@ -681,6 +692,34 @@ RectTransform:
m_AnchoredPosition: {x: 368, y: -159.66667}
m_SizeDelta: {x: 736, y: 36}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &452232320 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5921007623216315237, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
m_PrefabInstance: {fileID: 5921007621539747846}
m_PrefabAsset: {fileID: 0}
--- !u!114 &452232321
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 452232320}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 210d2b74f27ec564fa8ea35b50639d31, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &452232322 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
m_PrefabInstance: {fileID: 5921007621539747846}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 452232320}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &460731999
PrefabInstance:
m_ObjectHideFlags: 0
@ -784,6 +823,22 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.b
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.g
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.r
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_ColorMultiplier
value: 5
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315237, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Name
value: Slider
@ -929,6 +984,17 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 538467823}
m_CullTransparentMesh: 1
--- !u!114 &558361203 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
m_PrefabInstance: {fileID: 1680907432}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1001 &603421374
PrefabInstance:
m_ObjectHideFlags: 0
@ -2563,6 +2629,23 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 5361961963888605353, guid: e6408f5c817f33a41a28fec7a44e2120, type: 3}
m_PrefabInstance: {fileID: 1163968772}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1163968774 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5361961963888605354, guid: e6408f5c817f33a41a28fec7a44e2120, type: 3}
m_PrefabInstance: {fileID: 1163968772}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1163968775
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1163968774}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 210d2b74f27ec564fa8ea35b50639d31, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1206693890
GameObject:
m_ObjectHideFlags: 0
@ -3465,6 +3548,34 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!114 &1386040063 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
m_PrefabInstance: {fileID: 460731999}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1390592638 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 5361961963888605354, guid: e6408f5c817f33a41a28fec7a44e2120, type: 3}
m_PrefabInstance: {fileID: 603421374}
m_PrefabAsset: {fileID: 0}
--- !u!114 &1390592639
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1390592638}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 210d2b74f27ec564fa8ea35b50639d31, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1449186720
GameObject:
m_ObjectHideFlags: 0
@ -3702,6 +3813,34 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Navigation.m_Mode
value: 4
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.b
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.g
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.r
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Navigation.m_SelectOnUp
value:
objectReference: {fileID: 452232322}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_ColorMultiplier
value: 5
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Navigation.m_SelectOnDown
value:
objectReference: {fileID: 558361203}
- target: {fileID: 5921007623216315237, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Name
value: Slider
@ -4446,7 +4585,7 @@ MonoBehaviour:
m_ScrollWheelAction: {fileID: 4502412055082496612, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_TrackedDevicePositionAction: {fileID: 4754684134866288074, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_TrackedDeviceOrientationAction: {fileID: 1025543830046995696, guid: ca9f5fa95ffab41fb9a615ab714db018, type: 3}
m_DeselectOnBackgroundClick: 1
m_DeselectOnBackgroundClick: 0
m_PointerBehavior: 0
--- !u!114 &1575923010
MonoBehaviour:
@ -4830,6 +4969,22 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.b
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.g
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.r
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_ColorMultiplier
value: 5
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315237, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Name
value: Slider
@ -5085,10 +5240,10 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 4
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnUp: {fileID: 1386040063}
m_SelectOnDown: {fileID: 1851707881}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
@ -5319,15 +5474,15 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_Mode: 4
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnUp: {fileID: 1716058274}
m_SelectOnDown: {fileID: 119899795}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 1
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_NormalColor: {r: 0.6, g: 0.6, b: 0.6, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
@ -6039,10 +6194,26 @@ PrefabInstance:
m_Modification:
m_TransformParent: {fileID: 607793824}
m_Modifications:
- target: {fileID: 5921007621743368024, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5921007621743368025, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_AnchorMax.y
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5921007621743368038, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Color.b
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007621743368038, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Color.g
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007621743368038, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Color.r
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007622753688607, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_AnchorMax.y
value: 1
@ -6137,15 +6308,19 @@ PrefabInstance:
objectReference: {fileID: 1009061728}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.b
value: 0.21568629
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.g
value: 0.21568629
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_NormalColor.r
value: 0.21568629
value: 0.21568628
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315235, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Colors.m_ColorMultiplier
value: 5
objectReference: {fileID: 0}
- target: {fileID: 5921007623216315237, guid: 5166a6c3767d9d14b9f17a325da7066c, type: 3}
propertyPath: m_Name

View File

@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Preselect : MonoBehaviour
{
public void OnEnable()
{
GetComponent<Selectable>().Select();
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 210d2b74f27ec564fa8ea35b50639d31
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: