Files
Fishing2/Assets/ThirdParty/Rewired/Examples/CustomControllersTilt/CustomControllersTilt.unity
2025-05-10 12:49:47 +08:00

745 lines
20 KiB
Plaintext

%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!29 &1
SceneSettings:
m_ObjectHideFlags: 0
m_PVSData:
m_PVSObjectsArray: []
m_PVSPortalsArray: []
m_OcclusionBakeSettings:
smallestOccluder: 5
smallestHole: .25
backfaceThreshold: 100
--- !u!104 &2
RenderSettings:
m_Fog: 0
m_FogColor: {r: .5, g: .5, b: .5, a: 1}
m_FogMode: 3
m_FogDensity: .00999999978
m_LinearFogStart: 0
m_LinearFogEnd: 300
m_AmbientLight: {r: .200000003, g: .200000003, b: .200000003, a: 1}
m_SkyboxMaterial: {fileID: 0}
m_HaloStrength: .5
m_FlareStrength: 1
m_FlareFadeSpeed: 3
m_HaloTexture: {fileID: 0}
m_SpotCookie: {fileID: 0}
m_ObjectHideFlags: 0
--- !u!127 &3
LevelGameManager:
m_ObjectHideFlags: 0
--- !u!157 &4
LightmapSettings:
m_ObjectHideFlags: 0
m_LightProbes: {fileID: 0}
m_Lightmaps: []
m_LightmapsMode: 1
m_BakedColorSpace: 0
m_UseDualLightmapsInForward: 0
m_LightmapEditorSettings:
m_Resolution: 50
m_LastUsedResolution: 0
m_TextureWidth: 1024
m_TextureHeight: 1024
m_BounceBoost: 1
m_BounceIntensity: 1
m_SkyLightColor: {r: .860000014, g: .930000007, b: 1, a: 1}
m_SkyLightIntensity: 0
m_Quality: 0
m_Bounces: 1
m_FinalGatherRays: 1000
m_FinalGatherContrastThreshold: .0500000007
m_FinalGatherGradientThreshold: 0
m_FinalGatherInterpolationPoints: 15
m_AOAmount: 0
m_AOMaxDistance: .100000001
m_AOContrast: 1
m_LODSurfaceMappingDistance: 1
m_Padding: 0
m_TextureCompression: 0
m_LockAtlas: 0
--- !u!196 &5
NavMeshSettings:
m_ObjectHideFlags: 0
m_BuildSettings:
agentRadius: .5
agentHeight: 2
agentSlope: 45
agentClimb: .400000006
ledgeDropHeight: 0
maxJumpAcrossDistance: 0
accuratePlacement: 0
minRegionArea: 2
widthInaccuracy: 16.666666
heightInaccuracy: 10
m_NavMesh: {fileID: 0}
--- !u!1 &728977400
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 728977405}
- 20: {fileID: 728977404}
- 124: {fileID: 728977402}
- 81: {fileID: 728977401}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &728977401
AudioListener:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 728977400}
m_Enabled: 1
--- !u!124 &728977402
Behaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 728977400}
m_Enabled: 1
--- !u!20 &728977404
Camera:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 728977400}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: .192156866, g: .301960796, b: .474509805, a: .0196078438}
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: .300000012
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_HDR: 0
m_OcclusionCulling: 1
--- !u!4 &728977405
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 728977400}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
--- !u!1 &1127630099
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1127630103}
- 33: {fileID: 1127630102}
- 65: {fileID: 1127630101}
- 23: {fileID: 1127630100}
m_Layer: 0
m_Name: Cube
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!23 &1127630100
Renderer:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1127630099}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_LightmapIndex: 255
m_LightmapTilingOffset: {x: 1, y: 1, z: 0, w: 0}
m_Materials:
- {fileID: 10302, guid: 0000000000000000f000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_LightProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_SortingLayer: 0
m_SortingOrder: 0
m_SortingLayerID: 0
--- !u!65 &1127630101
BoxCollider:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1127630099}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1, y: 1, z: 1}
m_Center: {x: 0, y: 0, z: 0}
--- !u!33 &1127630102
MeshFilter:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1127630099}
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &1127630103
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1127630099}
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}
--- !u!1 &1461780887
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1461780889}
- 108: {fileID: 1461780888}
m_Layer: 0
m_Name: Directional light
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!108 &1461780888
Light:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1461780887}
m_Enabled: 1
serializedVersion: 3
m_Type: 1
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_Intensity: .5
m_Range: 10
m_SpotAngle: 30
m_CookieSize: 10
m_Shadows:
m_Type: 0
m_Resolution: -1
m_Strength: 1
m_Bias: .0500000007
m_Softness: 4
m_SoftnessFade: 1
m_Cookie: {fileID: 0}
m_DrawHalo: 0
m_ActuallyLightmapped: 0
m_Flare: {fileID: 0}
m_RenderMode: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_Lightmapping: 1
m_ShadowSamples: 1
m_ShadowRadius: 0
m_ShadowAngle: 0
m_IndirectIntensity: 1
m_AreaSize: {x: 1, y: 1}
--- !u!4 &1461780889
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1461780887}
m_LocalRotation: {x: .408217937, y: -.234569728, z: .109381661, w: .875426114}
m_LocalPosition: {x: 0, y: 12.1221924, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
--- !u!1 &1634079901
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1634079903}
- 114: {fileID: 1634079902}
m_Layer: 0
m_Name: Rewired Input Manager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1634079902
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1634079901}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 581b3e3c96df0ef42aef16b63b27b87f, type: 3}
m_Name:
m_EditorClassIdentifier:
_dontDestroyOnLoad: 1
_userData:
configVars:
updateLoop: 7
alwaysUseUnityInput: 0
windowsStandalonePrimaryInputSource: 0
osx_primaryInputSource: 0
linux_primaryInputSource: 0
windowsUWP_primaryInputSource: 0
xboxOne_primaryInputSource: 0
ps4_primaryInputSource: 0
webGL_primaryInputSource: 0
stadia_primaryInputSource: 0
useXInput: 1
useNativeMouse: 1
useEnhancedDeviceSupport: 1
windowsStandalone_useSteamRawInputControllerWorkaround: 0
osxStandalone_useEnhancedDeviceSupport: 1
android_supportUnknownGamepads: 1
ps4_assignJoysticksByPS4JoyId: 1
useSteamControllerSupport: 1
logToScreen: 0
runInEditMode: 0
allowInputInEditorSceneView: 0
platformVars_windowsStandalone:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
useNativeKeyboard: 1
joystickRefreshRate: 240
platformVars_linuxStandalone:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_osxStandalone:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_windows8Store:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_windowsUWP:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
useGamepadAPI: 1
useHIDAPI: 1
platformVars_iOS:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_tvOS:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_android:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_ps3:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_ps4:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_psVita:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_xbox360:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_xboxOne:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_wii:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_wiiu:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_switch:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_webGL:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
platformVars_stadia:
disableKeyboard: 0
ignoreInputWhenAppNotInFocus: 1
useNativeKeyboard: 1
useNativeMouse: 1
maxJoysticksPerPlayer: 1
autoAssignJoysticks: 1
assignJoysticksToPlayingPlayersOnly: 0
distributeJoysticksEvenly: 1
reassignJoystickToPreviousOwnerOnReconnect: 1
defaultJoystickAxis2DDeadZoneType: 1
defaultJoystickAxis2DSensitivityType: 0
defaultAxisSensitivityType: 0
force4WayHats: 0
throttleCalibrationMode: 0
activateActionButtonsOnNegativeValue: 0
deferControllerConnectedEventsOnStart: 0
logLevel: 7
editorSettings:
exportConsts_useParentClass: 0
exportConsts_parentClassName: RewiredConsts
exportConsts_useNamespace: 1
exportConsts_namespace: RewiredConsts
exportConsts_actions: 1
exportConsts_actionsClassName: Action
exportConsts_actionsIncludeActionCategory: 0
exportConsts_actionsCreateClassesForActionCategories: 0
exportConsts_mapCategories: 1
exportConsts_mapCategoriesClassName: Category
exportConsts_layouts: 1
exportConsts_layoutsClassName: Layout
exportConsts_players: 1
exportConsts_playersClassName: Player
exportConsts_inputBehaviors: 0
exportConsts_inputBehaviorsClassName: InputBehavior
exportConsts_customControllers: 1
exportConsts_customControllersClassName: CustomController
exportConsts_customControllersAxesClassName: Axis
exportConsts_customControllersButtonsClassName: Button
exportConsts_layoutManagerRuleSets: 1
exportConsts_layoutManagerRuleSetsClassName: LayoutManagerRuleSet
exportConsts_mapEnablerRuleSets: 1
exportConsts_mapEnablerRuleSetsClassName: MapEnablerRuleSet
exportConsts_allCapsConstantNames: 0
players:
- _id: 9999999
_name: System
_descriptiveName: System
_startPlaying: 1
_defaultJoystickMaps: []
_defaultMouseMaps: []
_defaultKeyboardMaps: []
_defaultCustomControllerMaps: []
_startingCustomControllers: []
_assignMouseOnStart: 1
_assignKeyboardOnStart: 1
_excludeFromControllerAutoAssignment: 1
_controllerMapLayoutManagerSettings:
_enabled: 1
_loadFromUserDataStore: 1
_ruleSets: []
_controllerMapEnablerSettings:
_enabled: 1
_ruleSets: []
- _id: 1
_name: Player0
_descriptiveName: Player0
_startPlaying: 1
_defaultJoystickMaps: []
_defaultMouseMaps: []
_defaultKeyboardMaps: []
_defaultCustomControllerMaps:
- _enabled: 1
_categoryId: 0
_layoutId: 0
_startingCustomControllers:
- _sourceId: 0
_tag: TiltController
_assignMouseOnStart: 0
_assignKeyboardOnStart: 1
_excludeFromControllerAutoAssignment: 0
_controllerMapLayoutManagerSettings:
_enabled: 1
_loadFromUserDataStore: 1
_ruleSets: []
_controllerMapEnablerSettings:
_enabled: 1
_ruleSets: []
actions:
- _id: 0
_name: Tilt Horizontal
_type: 0
_descriptiveName: Tilt Horizontal
_positiveDescriptiveName: Tilt Right
_negativeDescriptiveName: Tilt Left
_behaviorId: 0
_userAssignable: 1
_categoryId: 0
- _id: 1
_name: Tilt Vertical
_type: 0
_descriptiveName: Tilt Vertical
_positiveDescriptiveName: Tilt Up
_negativeDescriptiveName: Tilt Down
_behaviorId: 0
_userAssignable: 1
_categoryId: 0
actionCategories:
- _name: Default
_descriptiveName: Default
_tag:
_id: 0
_userAssignable: 1
actionCategoryMap:
list:
- categoryId: 0
actionIds: 0000000001000000
inputBehaviors:
- _id: 0
_name: Default
_joystickAxisSensitivity: 1
_digitalAxisSimulation: 1
_digitalAxisSnap: 1
_digitalAxisInstantReverse: 0
_digitalAxisGravity: 3
_digitalAxisSensitivity: 3
_mouseXYAxisMode: 0
_mouseOtherAxisMode: 0
_mouseXYAxisSensitivity: 1
_mouseXYAxisDeltaCalc: 0
_mouseOtherAxisSensitivity: 1
_customControllerAxisSensitivity: 1
_buttonDoublePressSpeed: .300000012
_buttonShortPressTime: .25
_buttonShortPressExpiresIn: 0
_buttonLongPressTime: 1
_buttonLongPressExpiresIn: 0
_buttonDeadZone: .5
_buttonDownBuffer: 0
_buttonRepeatRate: 30
_buttonRepeatDelay: 0
mapCategories:
- _name: Default
_descriptiveName: Default
_tag:
_id: 0
_userAssignable: 1
_checkConflictsWithAllCategories: 1
_checkConflictsCategoryIds:
joystickLayouts:
- _name: Default
_descriptiveName: Default
_id: 0
keyboardLayouts:
- _name: Default
_descriptiveName: Default
_id: 0
mouseLayouts:
- _name: Default
_descriptiveName: Default
_id: 0
customControllerLayouts:
- _name: Default
_descriptiveName: Default
_id: 0
joystickMaps: []
keyboardMaps: []
mouseMaps: []
customControllerMaps:
- id: 0
categoryId: 0
layoutId: 0
name:
hardwareGuidString:
customControllerUid: 0
actionElementMaps:
- _actionCategoryId: 0
_actionId: 0
_elementType: 0
_elementIdentifierId: 0
_axisRange: 0
_invert: 0
_axisContribution: 0
_keyboardKeyCode: 0
_modifierKey1: 0
_modifierKey2: 0
_modifierKey3: 0
- _actionCategoryId: 0
_actionId: 1
_elementType: 0
_elementIdentifierId: 1
_axisRange: 0
_invert: 0
_axisContribution: 0
_keyboardKeyCode: 0
_modifierKey1: 0
_modifierKey2: 0
_modifierKey3: 0
customControllers:
- _name: TiltController
_descriptiveName: TiltController
_id: 0
_typeGuidString:
_elementIdentifiers:
- _id: 0
_name: AccelerationX
_positiveName:
_negativeName:
_elementType: 0
_compoundElementType: 0
- _id: 1
_name: AccelerationY
_positiveName:
_negativeName:
_elementType: 0
_compoundElementType: 0
- _id: 2
_name: AccelerationZ
_positiveName:
_negativeName:
_elementType: 0
_compoundElementType: 0
_axes:
- elementIdentifierId: 0
name: AccelerationX
range: 0
invert: 0
deadZone: 0
zero: 0
min: -1
max: 1
doNotCalibrateRange: 0
sensitivityType: 0
sensitivity: 1
sensitivityCurve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
axisInfo:
_dataFormat: 0
_excludeFromPolling: 0
_specialAxisType: 0
_pollingDeadZone: -1
- elementIdentifierId: 1
name: AccelerationY
range: 0
invert: 0
deadZone: 0
zero: 0
min: -1
max: 1
doNotCalibrateRange: 0
sensitivityType: 0
sensitivity: 1
sensitivityCurve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
axisInfo:
_dataFormat: 0
_excludeFromPolling: 0
_specialAxisType: 0
_pollingDeadZone: -1
- elementIdentifierId: 2
name: AccelerationZ
range: 0
invert: 0
deadZone: 0
zero: 0
min: -1
max: 1
doNotCalibrateRange: 0
sensitivityType: 0
sensitivity: 1
sensitivityCurve:
serializedVersion: 2
m_Curve: []
m_PreInfinity: 2
m_PostInfinity: 2
axisInfo:
_dataFormat: 0
_excludeFromPolling: 0
_specialAxisType: 0
_pollingDeadZone: -1
_buttons: []
_elementIdentifierIdCounter: 3
controllerMapLayoutManagerRuleSets: []
controllerMapEnablerRuleSets: []
playerIdCounter: 2
actionIdCounter: 2
actionCategoryIdCounter: 1
inputBehaviorIdCounter: 1
mapCategoryIdCounter: 1
joystickLayoutIdCounter: 1
keyboardLayoutIdCounter: 1
mouseLayoutIdCounter: 1
customControllerLayoutIdCounter: 1
joystickMapIdCounter: 0
keyboardMapIdCounter: 0
mouseMapIdCounter: 0
customControllerMapIdCounter: 1
customControllerIdCounter: 1
controllerMapLayoutManagerSetIdCounter: 0
controllerMapEnablerSetIdCounter: 0
_controllerDataFiles: {fileID: 11400000, guid: d21d2b20df8369642b76aafbb2576ba7,
type: 2}
--- !u!4 &1634079903
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1634079901}
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}
--- !u!1 &1649776430
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
serializedVersion: 4
m_Component:
- 4: {fileID: 1649776431}
- 114: {fileID: 1649776432}
m_Layer: 0
m_Name: TiltController
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1649776431
Transform:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1649776430}
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}
--- !u!114 &1649776432
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 1649776430}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3e3b489bc9087f94a88ddaec74354c85, type: 3}
m_Name:
m_EditorClassIdentifier:
target: {fileID: 1127630103}
speed: 10