Skip to content

Commit

Permalink
Updated Unity version and added a script to clear player preferences.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenRice99 committed Feb 17, 2024
1 parent 7d9b3f7 commit 5de3c9e
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 7 deletions.
8 changes: 8 additions & 0 deletions Assets/Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Scripts/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 24 additions & 0 deletions Assets/Scripts/Editor/ClearPlayerPreferences.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#if UNITY_EDITOR
using UnityEditor;
using UnityEngine;

// Editor only classes.
namespace Editor
{
/// <summary>
/// Class that exists in the editor only to clear player preferences.
/// </summary>
public static class ClearPlayerPreferences
{
/// <summary>
/// Clear player preferences from the menu under "Edit > Clear Player Preferences".
/// </summary>
[MenuItem("Edit/Clear Player Preferences", priority = int.MaxValue)]
private static void Perform()
{
// Delete all player preferences.
PlayerPrefs.DeleteAll();
}
}
}
#endif
3 changes: 3 additions & 0 deletions Assets/Scripts/Editor/ClearPlayerPreferences.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ProjectSettings/DynamicsManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ PhysicsManager:
m_QueriesHitBackfaces: 0
m_QueriesHitTriggers: 1
m_EnableAdaptiveForce: 0
m_ClothInterCollisionDistance: 0
m_ClothInterCollisionStiffness: 0
m_ClothInterCollisionDistance: 0.1
m_ClothInterCollisionStiffness: 0.2
m_ContactsGeneration: 1
m_LayerCollisionMatrix: fff7ffff01f7ffff01f7fffff9f7fffff9f7fffff9f7fffff9fdffff79fdfffffff7ffff3ff7fffffff7ffffc0f0ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
m_SimulationMode: 0
m_AutoSyncTransforms: 0
m_ReuseCollisionCallbacks: 1
m_ReuseCollisionCallbacks: 0
m_InvokeCollisionCallbacks: 1
m_ClothInterCollisionSettingsToggle: 0
m_ClothGravity: {x: 0, y: -9.81, z: 0}
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
m_EditorVersion: 2022.3.19f1
m_EditorVersionWithRevision: 2022.3.19f1 (244b723c30a6)
m_EditorVersion: 2022.3.20f1
m_EditorVersionWithRevision: 2022.3.20f1 (61c2feb0970d)
2 changes: 1 addition & 1 deletion ProjectSettings/TimeManager.asset
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ TimeManager:
Fixed Timestep: 0.02
Maximum Allowed Timestep: 0.33333334
m_TimeScale: 1
Maximum Particle Timestep: 0.1
Maximum Particle Timestep: 0.03

0 comments on commit 5de3c9e

Please sign in to comment.