Persist player and third-person camera state across sessions
Add player position/rotation/wall-climb persistence and camera orbit (yaw/pitch/radius) persistence, auto-saved on quit/play-stop and auto-loaded on start. Also includes the wall-climb fixes (directional top-out, base detach on push-away). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
fa7082817e
commit
cda1373979
8 files changed
+340
-16
No files matched your search
@@ -528,6 +528,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: df129be8fadab79498bd429a59bb98e4, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::ThirdPersonOrbitInput
|
||||
persistCamera: 1
|
||||
cameraSaveId:
|
||||
lookMode: 0
|
||||
horizontalSensitivity: 0.1
|
||||
verticalSensitivity: 0.075
|
||||
@@ -721,7 +723,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 172071430}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.1305262, y: -3.7968678e-12, z: 4.3538282e-13, w: 0.9914449}
|
||||
m_LocalRotation: {x: 0.1305262, y: 5.7946933e-12, z: -2.6404215e-12, w: 0.9914449}
|
||||
m_LocalPosition: {x: 0, y: 1.9146858, z: -4.3466663}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
@@ -1256,7 +1258,7 @@ Transform:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 330585543}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0.1305262, y: -3.8055076e-12, z: 5.010046e-13, w: 0.9914449}
|
||||
m_LocalRotation: {x: 0.1305262, y: 5.543152e-12, z: -7.2976987e-13, w: 0.9914449}
|
||||
m_LocalPosition: {x: 0, y: 1.9146858, z: -4.3466663}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
@@ -1364,7 +1366,7 @@ Transform:
|
||||
m_GameObject: {fileID: 347639556}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalPosition: {x: -25, y: -4.5, z: -30}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
@@ -3233,6 +3235,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 463b6be548abf464287096e1e92fcd01, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::PlayerCharacterController
|
||||
persistPlayer: 1
|
||||
playerSaveId:
|
||||
moveSpeed: 4
|
||||
sprintSpeedMultiplier: 1.8
|
||||
acceleration: 30
|
||||
@@ -3377,6 +3381,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 463b6be548abf464287096e1e92fcd01, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::PlayerCharacterController
|
||||
persistPlayer: 1
|
||||
playerSaveId:
|
||||
moveSpeed: 4
|
||||
sprintSpeedMultiplier: 1.8
|
||||
acceleration: 30
|
||||
|
||||
Reference in new issue
Block a user