I don't remember what I did but it was probably important

This commit is contained in:
2026-02-19 15:40:06 +00:00
parent 7de47177c0
commit 1c5ca02607
7 changed files with 400 additions and 214 deletions

View File

@@ -176,6 +176,18 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d943606e96a65aeceaa19bb4a56c515b, type: 3} m_Script: {fileID: 11500000, guid: d943606e96a65aeceaa19bb4a56c515b, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: '::' m_EditorClassIdentifier: '::'
rb: {fileID: 1172921199}
fuelTank: {fileID: 1437557826}
rcsEnabled: 1
consumeFuel: 1
maxTorque: 2000
torqueResponseRate: 6000
leverArm: 2
Isp: 250
inputDeadzone: 0.05
controlInput: {x: 0, y: 0, z: 0}
appliedTorque: {x: 0, y: 0, z: 0}
fuelFlowRate: 0
--- !u!1 &109735446 --- !u!1 &109735446
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -1417,6 +1429,7 @@ MonoBehaviour:
attitudeResponseSpeed: 1 attitudeResponseSpeed: 1
mainEngine: {fileID: 1437557825} mainEngine: {fileID: 1437557825}
gimbalSystem: {fileID: 1437557827} gimbalSystem: {fileID: 1437557827}
rcsController: {fileID: 28211676}
throttleDisplay: {fileID: 348618513} throttleDisplay: {fileID: 348618513}
--- !u!114 &986986473 --- !u!114 &986986473
MonoBehaviour: MonoBehaviour:
@@ -1611,6 +1624,7 @@ MonoBehaviour:
m_EditorClassIdentifier: '::' m_EditorClassIdentifier: '::'
mainEngine: {fileID: 1437557825} mainEngine: {fileID: 1437557825}
gimbalSystem: {fileID: 1437557827} gimbalSystem: {fileID: 1437557827}
rcsController: {fileID: 28211676}
rb: {fileID: 1172921199} rb: {fileID: 1172921199}
altimeter: {fileID: 894314916} altimeter: {fileID: 894314916}
physicsTransitionAltitude: 1000 physicsTransitionAltitude: 1000
@@ -1898,6 +1912,7 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: '::' m_EditorClassIdentifier: '::'
fuelAmount: 1000 fuelAmount: 1000
rcsFuelAmount: 200
--- !u!114 &1437557827 --- !u!114 &1437557827
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@@ -3,19 +3,32 @@ using UnityEngine;
public class FuelTank : MonoBehaviour public class FuelTank : MonoBehaviour
{ {
public float fuelAmount = 1000f; // kg of fuel available in the tank public float fuelAmount = 1000f; // kg of fuel available in the tank
public float rcsFuelAmount = 200f; // kg of monopropellant available for RCS
public bool isEmpty => fuelAmount <= 0f; public bool isEmpty => fuelAmount <= 0f;
public bool isRcsEmpty => rcsFuelAmount <= 0f;
public float RequestFuel(float amount) public float RequestFuel(float amount)
{ {
float fuelGiven = Mathf.Min(amount, fuelAmount); float fuelGiven = Mathf.Min(amount, fuelAmount);
fuelAmount -= fuelGiven; fuelAmount -= fuelGiven;
return fuelGiven; return fuelGiven;
} }
public float RequestRcsFuel(float amount)
{
float fuelGiven = Mathf.Min(amount, rcsFuelAmount);
rcsFuelAmount -= fuelGiven;
return fuelGiven;
}
public float GetFuelAmount() => fuelAmount; public float GetFuelAmount() => fuelAmount;
public float GetRcsFuelAmount() => rcsFuelAmount;
void Update() void Update()
{ {
if (fuelAmount <= 0f) if (fuelAmount <= 0f)
{ {
fuelAmount = 0f; fuelAmount = 0f;
} }
if (rcsFuelAmount <= 0f)
{
rcsFuelAmount = 0f;
}
} }
} }

View File

@@ -17,6 +17,7 @@ public class InstrumentManager : MonoBehaviour
[Header("References")] [Header("References")]
public MainEngine mainEngine; // Reference to your engine script public MainEngine mainEngine; // Reference to your engine script
public GimbalSystem gimbalSystem; // Reference to gimbal control system public GimbalSystem gimbalSystem; // Reference to gimbal control system
public RCSController rcsController; // Reference to RCS control system
// Referance to TextMeshPro Throttle slider // Referance to TextMeshPro Throttle slider
public Slider throttleDisplay; // Reference to UI Slider component public Slider throttleDisplay; // Reference to UI Slider component
@@ -80,7 +81,7 @@ public class InstrumentManager : MonoBehaviour
} }
// Handle attitude control input // Handle attitude control input
if (attitudeAction != null && gimbalSystem != null) if (attitudeAction != null)
{ {
// Read Vector3 input // Read Vector3 input
Vector3 attitudeInput = attitudeAction.action.ReadValue<Vector3>(); Vector3 attitudeInput = attitudeAction.action.ReadValue<Vector3>();
@@ -92,9 +93,20 @@ public class InstrumentManager : MonoBehaviour
// Y (up/down) → Pitch // Y (up/down) → Pitch
// X (left/right) → Yaw // X (left/right) → Yaw
// Z (forward/backward) → Roll // Z (forward/backward) → Roll
if (gimbalSystem != null)
{
gimbalSystem.SetPitchInput(attitudeInput.y); gimbalSystem.SetPitchInput(attitudeInput.y);
gimbalSystem.SetYawInput(attitudeInput.x); gimbalSystem.SetYawInput(attitudeInput.x);
gimbalSystem.SetRollInput(attitudeInput.z); gimbalSystem.SetRollInput(attitudeInput.z);
} }
// Map inputs to RCS controller:
// Vector3(x=yaw, y=pitch, z=roll)
if (rcsController != null)
{
Vector3 rcsInput = new Vector3(attitudeInput.x, attitudeInput.y, attitudeInput.z);
rcsController.SetControlInput(rcsInput);
}
}
} }
} }

View File

@@ -2,15 +2,92 @@ using UnityEngine;
public class RCSController : MonoBehaviour public class RCSController : MonoBehaviour
{ {
// Start is called once before the first execution of Update after the MonoBehaviour is created [Header("References")]
void Start() public Rigidbody rb;
{ public FuelTank fuelTank;
[Header("RCS Settings")]
public bool rcsEnabled = true;
public bool consumeFuel = true;
public float maxTorque = 2000f; // N*m
public float torqueResponseRate = 6000f; // N*m per second
public float leverArm = 2f; // meters
public float Isp = 250f; // seconds
public float inputDeadzone = 0.05f;
[Header("Input")]
public Vector3 controlInput; // x = yaw, y = pitch, z = roll (-1 to 1)
[Header("Output")]
public Vector3 appliedTorque = Vector3.zero; // world space
public float fuelFlowRate = 0f; // kg/s
private const float g0 = 9.80665f;
private Vector3 currentLocalTorque = Vector3.zero;
void FixedUpdate()
{
if (!rcsEnabled || rb == null)
{
appliedTorque = Vector3.zero;
currentLocalTorque = Vector3.zero;
fuelFlowRate = 0f;
return;
} }
// Update is called once per frame Vector3 clampedInput = new Vector3(
void Update() Mathf.Abs(controlInput.x) < inputDeadzone ? 0f : Mathf.Clamp(controlInput.x, -1f, 1f),
{ Mathf.Abs(controlInput.y) < inputDeadzone ? 0f : Mathf.Clamp(controlInput.y, -1f, 1f),
Mathf.Abs(controlInput.z) < inputDeadzone ? 0f : Mathf.Clamp(controlInput.z, -1f, 1f)
);
float pitchInput = clampedInput.y;
float yawInput = clampedInput.x;
float rollInput = clampedInput.z;
Vector3 targetLocalTorque = new Vector3(pitchInput, yawInput, rollInput) * maxTorque;
float maxDelta = torqueResponseRate * Time.fixedDeltaTime;
currentLocalTorque = Vector3.MoveTowards(currentLocalTorque, targetLocalTorque, maxDelta);
Vector3 fueledLocalTorque = ApplyFuelLimit(currentLocalTorque);
appliedTorque = rb.rotation * fueledLocalTorque;
}
private Vector3 ApplyFuelLimit(Vector3 desiredLocalTorque)
{
fuelFlowRate = 0f;
if (!consumeFuel || fuelTank == null)
{
return desiredLocalTorque;
}
if (leverArm <= 0f || Isp <= 0f)
{
return desiredLocalTorque;
}
float torqueMagnitude = desiredLocalTorque.magnitude;
if (torqueMagnitude <= 0f)
{
return Vector3.zero;
}
float requiredForce = torqueMagnitude / leverArm;
fuelFlowRate = requiredForce / (Isp * g0);
float fuelRequested = fuelFlowRate * Time.fixedDeltaTime;
float fuelProvided = fuelTank.RequestRcsFuel(fuelRequested);
if (fuelProvided < fuelRequested && fuelRequested > 0f)
{
float scale = Mathf.Clamp01(fuelProvided / fuelRequested);
return desiredLocalTorque * scale;
}
return desiredLocalTorque;
}
public void SetControlInput(Vector3 input)
{
controlInput = input;
} }
} }

View File

@@ -6,6 +6,7 @@ public class RocketPhysics : MonoBehaviour
[Header("References")] [Header("References")]
public MainEngine mainEngine; public MainEngine mainEngine;
public GimbalSystem gimbalSystem; public GimbalSystem gimbalSystem;
public RCSController rcsController;
public Rigidbody rb; public Rigidbody rb;
public Altimeter altimeter; public Altimeter altimeter;
@@ -102,10 +103,18 @@ public class RocketPhysics : MonoBehaviour
rb.AddForce(gravityForce, ForceMode.Force); rb.AddForce(gravityForce, ForceMode.Force);
rb.AddForce(thrustForce, ForceMode.Force); rb.AddForce(thrustForce, ForceMode.Force);
// Apply gimbal torque if available Vector3 totalTorque = Vector3.zero;
if (gimbalSystem != null) if (gimbalSystem != null)
{ {
rb.AddTorque(gimbalSystem.appliedTorque, ForceMode.Force); totalTorque += gimbalSystem.appliedTorque;
}
if (rcsController != null)
{
totalTorque += rcsController.appliedTorque;
}
if (totalTorque.sqrMagnitude > 0f)
{
rb.AddTorque(totalTorque, ForceMode.Force);
} }
} }
else else
@@ -149,10 +158,18 @@ public class RocketPhysics : MonoBehaviour
// Only apply to rigidbody if not frozen // Only apply to rigidbody if not frozen
if (!isFrozen) if (!isFrozen)
{ {
// Apply gimbal torque if available Vector3 totalTorque = Vector3.zero;
if (gimbalSystem != null && gimbalSystem.appliedTorque.magnitude > 0f) if (gimbalSystem != null)
{ {
ApplyManualTorque(gimbalSystem.appliedTorque); totalTorque += gimbalSystem.appliedTorque;
}
if (rcsController != null)
{
totalTorque += rcsController.appliedTorque;
}
if (totalTorque.sqrMagnitude > 0f)
{
ApplyManualTorque(totalTorque);
} }
// Update Unity transform (kinematic mode) // Update Unity transform (kinematic mode)

0
README.md Normal file
View File

View File

@@ -14,17 +14,69 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_PixelRect: m_PixelRect:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 364
y: 60 y: 200
width: 1920 width: 1206
height: 993 height: 661
m_ShowMode: 4 m_ShowMode: 4
m_Title: Game m_Title: Game
m_RootView: {fileID: 6} m_RootView: {fileID: 8}
m_MinSize: {x: 875, y: 300} m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000} m_MaxSize: {x: 10000, y: 10000}
m_Maximized: 0 m_Maximized: 0
--- !u!114 &2 --- !u!114 &2
MonoBehaviour:
m_ObjectHideFlags: 52
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: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: GameView
m_EditorClassIdentifier: UnityEditor.dll::UnityEditor.DockArea
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 404
width: 285
height: 201
m_MinSize: {x: 201, y: 226}
m_MaxSize: {x: 4001, y: 4026}
m_ActualView: {fileID: 19}
m_Panes:
- {fileID: 19}
m_Selected: 0
m_LastSelected: 0
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
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: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier: UnityEditor.dll::UnityEditor.SplitView
m_Children:
- {fileID: 5}
- {fileID: 2}
m_Position:
serializedVersion: 2
x: 921
y: 0
width: 285
height: 605
m_MinSize: {x: 100, y: 112}
m_MaxSize: {x: 8096, y: 16192}
vertical: 1
controlID: 1012
draggingID: 0
--- !u!114 &4
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -37,71 +89,19 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Children: m_Children:
- {fileID: 9} - {fileID: 11}
- {fileID: 3} - {fileID: 3}
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 36 y: 36
width: 1920 width: 1206
height: 937 height: 605
m_MinSize: {x: 300, y: 112} m_MinSize: {x: 300, y: 112}
m_MaxSize: {x: 24288, y: 16192} m_MaxSize: {x: 24288, y: 16192}
vertical: 0 vertical: 0
controlID: 18 controlID: 72
draggingID: 0 draggingID: 0
--- !u!114 &3
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 1466
y: 0
width: 454
height: 937
m_MinSize: {x: 276, y: 76}
m_MaxSize: {x: 4001, y: 4026}
m_ActualView: {fileID: 14}
m_Panes:
- {fileID: 14}
m_Selected: 0
m_LastSelected: 0
--- !u!114 &4
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 363
height: 554
m_MinSize: {x: 201, y: 226}
m_MaxSize: {x: 4001, y: 4026}
m_ActualView: {fileID: 15}
m_Panes:
- {fileID: 15}
m_Selected: 0
m_LastSelected: 0
--- !u!114 &5 --- !u!114 &5
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
@@ -112,24 +112,76 @@ MonoBehaviour:
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 1 m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: ConsoleWindow m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Children: [] m_Children: []
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 554 y: 0
width: 1466 width: 285
height: 383 height: 404
m_MinSize: {x: 101, y: 126} m_MinSize: {x: 276, y: 76}
m_MaxSize: {x: 4001, y: 4026} m_MaxSize: {x: 4001, y: 4026}
m_ActualView: {fileID: 18} m_ActualView: {fileID: 16}
m_Panes: m_Panes:
- {fileID: 13} - {fileID: 16}
- {fileID: 18} m_Selected: 0
m_Selected: 1
m_LastSelected: 0 m_LastSelected: 0
--- !u!114 &6 --- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 228
height: 358
m_MinSize: {x: 201, y: 226}
m_MaxSize: {x: 4001, y: 4026}
m_ActualView: {fileID: 17}
m_Panes:
- {fileID: 17}
m_Selected: 0
m_LastSelected: 0
--- !u!114 &7
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: ProjectBrowser
m_EditorClassIdentifier:
m_Children: []
m_Position:
serializedVersion: 2
x: 0
y: 358
width: 921
height: 247
m_MinSize: {x: 231, y: 276}
m_MaxSize: {x: 10001, y: 10026}
m_ActualView: {fileID: 15}
m_Panes:
- {fileID: 15}
- {fileID: 20}
m_Selected: 0
m_LastSelected: 1
--- !u!114 &8
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -142,22 +194,22 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Children: m_Children:
- {fileID: 7} - {fileID: 9}
- {fileID: 2} - {fileID: 4}
- {fileID: 8} - {fileID: 10}
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1920 width: 1206
height: 993 height: 661
m_MinSize: {x: 875, y: 300} m_MinSize: {x: 875, y: 300}
m_MaxSize: {x: 10000, y: 10000} m_MaxSize: {x: 10000, y: 10000}
m_UseTopView: 1 m_UseTopView: 1
m_TopViewHeight: 36 m_TopViewHeight: 36
m_UseBottomView: 1 m_UseBottomView: 1
m_BottomViewHeight: 20 m_BottomViewHeight: 20
--- !u!114 &7 --- !u!114 &9
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -174,12 +226,12 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1920 width: 1206
height: 36 height: 36
m_MinSize: {x: 50, y: 50} m_MinSize: {x: 50, y: 50}
m_MaxSize: {x: 4000, y: 4000} m_MaxSize: {x: 4000, y: 4000}
m_ActualView: {fileID: 12} m_ActualView: {fileID: 14}
--- !u!114 &8 --- !u!114 &10
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -195,64 +247,64 @@ MonoBehaviour:
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 973 y: 641
width: 1920 width: 1206
height: 20 height: 20
m_MinSize: {x: 0, y: 0} m_MinSize: {x: 0, y: 0}
m_MaxSize: {x: 0, y: 0} m_MaxSize: {x: 0, y: 0}
--- !u!114 &9
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 10}
- {fileID: 5}
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 1466
height: 937
m_MinSize: {x: 200, y: 112}
m_MaxSize: {x: 16192, y: 16192}
vertical: 1
controlID: 19
draggingID: 0
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 4}
- {fileID: 11}
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 1466
height: 554
m_MinSize: {x: 200, y: 56}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 20
draggingID: 0
--- !u!114 &11 --- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 12}
- {fileID: 7}
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 921
height: 605
m_MinSize: {x: 200, y: 112}
m_MaxSize: {x: 16192, y: 16192}
vertical: 1
controlID: 73
draggingID: 0
--- !u!114 &12
MonoBehaviour:
m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 1
m_Script: {fileID: 12010, guid: 0000000000000000e000000000000000, type: 0}
m_Name:
m_EditorClassIdentifier:
m_Children:
- {fileID: 6}
- {fileID: 13}
m_Position:
serializedVersion: 2
x: 0
y: 0
width: 921
height: 358
m_MinSize: {x: 200, y: 56}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 74
draggingID: 0
--- !u!114 &13
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -262,24 +314,23 @@ MonoBehaviour:
m_Enabled: 1 m_Enabled: 1
m_EditorHideFlags: 1 m_EditorHideFlags: 1
m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0} m_Script: {fileID: 12006, guid: 0000000000000000e000000000000000, type: 0}
m_Name: GameView m_Name: SceneView
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_Children: [] m_Children: []
m_Position: m_Position:
serializedVersion: 2 serializedVersion: 2
x: 363 x: 228
y: 0 y: 0
width: 1103 width: 693
height: 554 height: 358
m_MinSize: {x: 202, y: 226} m_MinSize: {x: 202, y: 226}
m_MaxSize: {x: 4002, y: 4026} m_MaxSize: {x: 4002, y: 4026}
m_ActualView: {fileID: 17} m_ActualView: {fileID: 18}
m_Panes: m_Panes:
- {fileID: 16} - {fileID: 18}
- {fileID: 17} m_Selected: 0
m_Selected: 1
m_LastSelected: 0 m_LastSelected: 0
--- !u!114 &12 --- !u!114 &14
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -302,7 +353,7 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 0 y: 0
width: 1920 width: 1206
height: 36 height: 36
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
@@ -545,7 +596,7 @@ MonoBehaviour:
m_DynamicPanelContainerData: [] m_DynamicPanelContainerData: []
m_OverlaysVisible: 1 m_OverlaysVisible: 1
m_DynamicPanelBehavior: 0 m_DynamicPanelBehavior: 0
--- !u!114 &13 --- !u!114 &15
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -567,9 +618,9 @@ MonoBehaviour:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 677 y: 382
width: 1465 width: 920
height: 357 height: 221
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
@@ -613,12 +664,12 @@ MonoBehaviour:
m_FolderTreeState: m_FolderTreeState:
scrollPos: {x: 0, y: 0} scrollPos: {x: 0, y: 0}
m_SelectedIDs: m_SelectedIDs:
- m_Data: 46266 - m_Data: 46054
m_LastClickedID: m_LastClickedID:
m_Data: 46266 m_Data: 46054
m_ExpandedIDs: m_ExpandedIDs:
- m_Data: 0 - m_Data: 0
- m_Data: 46054 - m_Data: 46064
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
@@ -651,7 +702,7 @@ MonoBehaviour:
m_Data: 0 m_Data: 0
m_ExpandedIDs: m_ExpandedIDs:
- m_Data: 0 - m_Data: 0
- m_Data: 46054 - m_Data: 46064
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
@@ -679,8 +730,8 @@ MonoBehaviour:
m_ResourceFile: m_ResourceFile:
m_ListAreaState: m_ListAreaState:
m_SelectedInstanceIDs: m_SelectedInstanceIDs:
- m_Data: 46380 - m_Data: 45734
m_LastClickedInstanceID: 46380 m_LastClickedInstanceID: 45734
m_HadKeyboardFocusLastEvent: 1 m_HadKeyboardFocusLastEvent: 1
m_ExpandedInstanceIDs: [] m_ExpandedInstanceIDs: []
m_RenameOverlay: m_RenameOverlay:
@@ -712,7 +763,7 @@ MonoBehaviour:
m_GridSize: 64 m_GridSize: 64
m_SkipHiddenPackages: 0 m_SkipHiddenPackages: 0
m_DirectoriesAreaWidth: 207 m_DirectoriesAreaWidth: 207
--- !u!114 &14 --- !u!114 &16
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -733,10 +784,10 @@ MonoBehaviour:
m_TextWithWhitespace: "Inspector\u200B" m_TextWithWhitespace: "Inspector\u200B"
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 1467 x: 1
y: 24 y: 24
width: 453 width: 284
height: 911 height: 378
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
@@ -763,7 +814,7 @@ MonoBehaviour:
m_LockTracker: m_LockTracker:
m_IsLocked: 0 m_IsLocked: 0
m_PreviewWindow: {fileID: 0} m_PreviewWindow: {fileID: 0}
--- !u!114 &15 --- !u!114 &17
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -786,8 +837,8 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 24 y: 24
width: 362 width: 227
height: 528 height: 332
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
@@ -809,6 +860,7 @@ MonoBehaviour:
m_Data: 0 m_Data: 0
m_ExpandedIDs: m_ExpandedIDs:
- m_Data: -1294 - m_Data: -1294
- m_Data: 45680
m_RenameOverlay: m_RenameOverlay:
m_UserAcceptedRename: 0 m_UserAcceptedRename: 0
m_Name: m_Name:
@@ -834,7 +886,7 @@ MonoBehaviour:
m_IsLocked: 0 m_IsLocked: 0
m_CurrentSortingName: TransformSorting m_CurrentSortingName: TransformSorting
m_WindowGUID: 4c969a2b90040154d917609493e03593 m_WindowGUID: 4c969a2b90040154d917609493e03593
--- !u!114 &16 --- !u!114 &18
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -855,10 +907,10 @@ MonoBehaviour:
m_TextWithWhitespace: "Scene\u200B" m_TextWithWhitespace: "Scene\u200B"
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 363 x: 229
y: 123 y: 24
width: 1101 width: 691
height: 528 height: 332
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
@@ -1291,17 +1343,17 @@ MonoBehaviour:
m_Size: {x: 0, y: 0} m_Size: {x: 0, y: 0}
yGrid: yGrid:
m_Fade: m_Fade:
m_Target: 0 m_Target: 1
speed: 2 speed: 2
m_Value: 0 m_Value: 1
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
m_Pivot: {x: 0, y: 0, z: 0} m_Pivot: {x: 0, y: 0, z: 0}
m_Size: {x: 1, y: 1} m_Size: {x: 1, y: 1}
zGrid: zGrid:
m_Fade: m_Fade:
m_Target: 1 m_Target: 0
speed: 2 speed: 2
m_Value: 1 m_Value: 0
m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4} m_Color: {r: 0.5, g: 0.5, b: 0.5, a: 0.4}
m_Pivot: {x: 0, y: 0, z: 0} m_Pivot: {x: 0, y: 0, z: 0}
m_Size: {x: 1, y: 1} m_Size: {x: 1, y: 1}
@@ -1309,13 +1361,13 @@ MonoBehaviour:
m_GridAxis: 1 m_GridAxis: 1
m_gridOpacity: 0.5 m_gridOpacity: 0.5
m_Rotation: m_Rotation:
m_Target: {x: -0.01953283, y: 0.97352827, z: -0.091104165, w: -0.20872095} m_Target: {x: -0.33038518, y: 0.1664157, z: -0.059300404, w: -0.92716736}
speed: 2 speed: 2
m_Value: {x: -0.0195328, y: 0.9735268, z: -0.09110402, w: -0.20872062} m_Value: {x: -0.3303852, y: 0.1664157, z: -0.059300404, w: -0.92716736}
m_Size: m_Size:
m_Target: 2.4383476 m_Target: 4.962456
speed: 2 speed: 2
m_Value: 2.4383476 m_Value: 4.962456
m_Ortho: m_Ortho:
m_Target: 0 m_Target: 0
speed: 2 speed: 2
@@ -1336,7 +1388,7 @@ MonoBehaviour:
m_LastSceneViewRotation: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226} m_LastSceneViewRotation: {x: -0.08717229, y: 0.89959055, z: -0.21045254, w: -0.3726226}
m_LastSceneViewOrtho: 0 m_LastSceneViewOrtho: 0
m_Viewpoint: m_Viewpoint:
m_SceneView: {fileID: 16} m_SceneView: {fileID: 18}
m_CameraOverscanSettings: m_CameraOverscanSettings:
m_Opacity: 50 m_Opacity: 50
m_Scale: 1 m_Scale: 1
@@ -1349,7 +1401,7 @@ MonoBehaviour:
name: Contributors / Receivers name: Contributors / Receivers
section: Lighting section: Lighting
m_ViewIsLockedToObject: 0 m_ViewIsLockedToObject: 0
--- !u!114 &17 --- !u!114 &19
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -1370,10 +1422,10 @@ MonoBehaviour:
m_TextWithWhitespace: "Game\u200B" m_TextWithWhitespace: "Game\u200B"
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 364 x: 1
y: 24 y: 428
width: 1101 width: 284
height: 528 height: 175
m_SerializedDataModeController: m_SerializedDataModeController:
m_DataMode: 0 m_DataMode: 0
m_PreferredDataMode: 0 m_PreferredDataMode: 0
@@ -1393,7 +1445,7 @@ MonoBehaviour:
m_ShowGizmos: 0 m_ShowGizmos: 0
m_TargetDisplay: 0 m_TargetDisplay: 0
m_ClearColor: {r: 0, g: 0, b: 0, a: 0} m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
m_TargetSize: {x: 1101, y: 507} m_TargetSize: {x: 1920, y: 1080}
m_TextureFilterMode: 0 m_TextureFilterMode: 0
m_TextureHideFlags: 61 m_TextureHideFlags: 61
m_RenderIMGUI: 1 m_RenderIMGUI: 1
@@ -1402,23 +1454,23 @@ MonoBehaviour:
m_VSyncEnabled: 0 m_VSyncEnabled: 0
m_Gizmos: 0 m_Gizmos: 0
m_Stats: 0 m_Stats: 0
m_SelectedSizes: 00000000000000000000000000000000000000000000000000000000000000000000000000000000 m_SelectedSizes: 03000000000000000000000000000000000000000000000000000000000000000000000000000000
m_ZoomArea: m_ZoomArea:
m_HRangeLocked: 0 m_HRangeLocked: 0
m_VRangeLocked: 0 m_VRangeLocked: 0
hZoomLockedByDefault: 0 hZoomLockedByDefault: 0
vZoomLockedByDefault: 0 vZoomLockedByDefault: 0
m_HBaseRangeMin: -550.5 m_HBaseRangeMin: -960
m_HBaseRangeMax: 550.5 m_HBaseRangeMax: 960
m_VBaseRangeMin: -253.5 m_VBaseRangeMin: -540
m_VBaseRangeMax: 253.5 m_VBaseRangeMax: 540
m_HAllowExceedBaseRangeMin: 1 m_HAllowExceedBaseRangeMin: 1
m_HAllowExceedBaseRangeMax: 1 m_HAllowExceedBaseRangeMax: 1
m_VAllowExceedBaseRangeMin: 1 m_VAllowExceedBaseRangeMin: 1
m_VAllowExceedBaseRangeMax: 1 m_VAllowExceedBaseRangeMax: 1
m_ScaleWithWindow: 0 m_ScaleWithWindow: 0
m_HSlider: 0 m_HSlider: 1
m_VSlider: 0 m_VSlider: 1
m_IgnoreScrollWheelUntilClicked: 0 m_IgnoreScrollWheelUntilClicked: 0
m_EnableMouseInput: 1 m_EnableMouseInput: 1
m_EnableSliderZoomHorizontal: 0 m_EnableSliderZoomHorizontal: 0
@@ -1429,30 +1481,30 @@ MonoBehaviour:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 21 y: 21
width: 1101 width: 453
height: 507 height: 265
m_Scale: {x: 1, y: 1} m_Scale: {x: 0.37301216, y: 0.37301216}
m_Translation: {x: 550.5, y: 253.5} m_Translation: {x: 226.5, y: 132.5}
m_MarginLeft: 0 m_MarginLeft: 0
m_MarginRight: 0 m_MarginRight: 0
m_MarginTop: 0 m_MarginTop: 0
m_MarginBottom: 0 m_MarginBottom: 0
m_LastShownAreaInsideMargins: m_LastShownAreaInsideMargins:
serializedVersion: 2 serializedVersion: 2
x: -550.5 x: -607.2188
y: -253.5 y: -355.2163
width: 1101 width: 1214.4376
height: 507 height: 710.4326
m_MinimalGUI: 1 m_MinimalGUI: 1
m_defaultScale: 1 m_defaultScale: 0.2359375
m_LastWindowPixelSize: {x: 1101, y: 528} m_LastWindowPixelSize: {x: 453, y: 286}
m_ClearInEditMode: 1 m_ClearInEditMode: 1
m_NoCameraWarning: 1 m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 01000000000000000000 m_LowResolutionForAspectRatios: 01000000000000000000
m_XRRenderMode: 0 m_XRRenderMode: 0
m_RenderTexture: {fileID: 0} m_RenderTexture: {fileID: 0}
m_showToolbar: 1 m_showToolbar: 1
--- !u!114 &18 --- !u!114 &20
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 52 m_ObjectHideFlags: 52
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
@@ -1474,7 +1526,7 @@ MonoBehaviour:
m_Pos: m_Pos:
serializedVersion: 2 serializedVersion: 2
x: 0 x: 0
y: 578 y: 677
width: 1465 width: 1465
height: 357 height: 357
m_SerializedDataModeController: m_SerializedDataModeController: