├── .gitignore ├── .vsconfig ├── Assets ├── PathTools.meta ├── PathTools │ ├── PathToolsExamples.meta │ ├── PathToolsExamples │ │ ├── PlaymakerScenes.meta │ │ ├── PlaymakerScenes │ │ │ ├── PathToolsPlaymakerExample.unity │ │ │ └── PathToolsPlaymakerExample.unity.meta │ │ ├── Scenes.meta │ │ └── Scenes │ │ │ ├── PathToolsExample.unity │ │ │ └── PathToolsExample.unity.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── Editor.meta │ │ ├── Editor │ │ │ ├── PathScriptEditor.cs │ │ │ ├── PathScriptEditor.cs.meta │ │ │ ├── PathTools.Editor.asmdef │ │ │ └── PathTools.Editor.asmdef.meta │ │ ├── Runtime.meta │ │ └── Runtime │ │ │ ├── BakedPath.cs │ │ │ ├── BakedPath.cs.meta │ │ │ ├── MoveAlongPath.cs │ │ │ ├── MoveAlongPath.cs.meta │ │ │ ├── PathBase.cs │ │ │ ├── PathBase.cs.meta │ │ │ ├── PathScript.cs │ │ │ ├── PathScript.cs.meta │ │ │ ├── PathTools.Runtime.asmdef │ │ │ ├── PathTools.Runtime.asmdef.meta │ │ │ ├── PlayMaker Custom Actions.meta │ │ │ ├── PlayMaker Custom Actions │ │ │ ├── PathTools.meta │ │ │ └── PathTools │ │ │ │ ├── PathToolsFollow.cs │ │ │ │ ├── PathToolsFollow.cs.meta │ │ │ │ ├── PathToolsModify.cs │ │ │ │ ├── PathToolsModify.cs.meta │ │ │ │ ├── Variable Type Definition.asset │ │ │ │ └── Variable Type Definition.asset.meta │ │ │ ├── TangentType.cs │ │ │ └── TangentType.cs.meta │ ├── package.json │ └── package.json.meta └── Plugins.meta ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── PathTools.gif ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── TagManager.asset ├── TimeManager.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset ├── README.md └── UserSettings └── EditorUserSettings.asset /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Asset meta data should only be ignored when the corresponding asset is also ignored 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # Autogenerated Jetbrains Rider plugin 20 | [Aa]ssets/Plugins/Editor/JetBrains* 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | 61 | Assets/PlayMaker/ 62 | Assets/Gizmos/ 63 | Assets/Plugins/PlayMaker/ 64 | Assets/Gizmos.meta 65 | Assets/PlayMaker.meta 66 | Assets/Plugins/PlayMaker.meta 67 | -------------------------------------------------------------------------------- /.vsconfig: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "components": [ 4 | "Microsoft.VisualStudio.Workload.ManagedGame" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Assets/PathTools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f6d7fa5dbd4f6e449cdd86fca295ef5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/PathToolsExamples.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f82c1023f9db4c94aa39911557e8abfe 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/PathToolsExamples/PlaymakerScenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdca07ec317138444833c5d72dc53bbc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/PathToolsExamples/PlaymakerScenes/PathToolsPlaymakerExample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca6a2a1524120c44a9262db85eafc9f3 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PathTools/PathToolsExamples/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a0442c87680a3e48a7fed8f7c9629d9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/PathToolsExamples/Scenes/PathToolsExample.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2a17ea4a12b0e524cb7e4684236d2edb 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 966251e09c9447549a25777770ddd27a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e98780cb8da2d984a85705611ce5c3d3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Editor/PathScriptEditor.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using UnityEditor; 5 | 6 | namespace Romi.PathTools 7 | { 8 | [CustomEditor(typeof(PathScript))] 9 | public class PathScriptEditor : Editor 10 | { 11 | PathScript source; 12 | int selectedId = -1; 13 | float pickSize = 1f; 14 | float subPickSize = 0.3f; 15 | 16 | SerializedProperty handleSize; 17 | SerializedProperty stepSize; 18 | SerializedProperty bakedPathResource; 19 | 20 | SelectedNode currentSelectedNode; 21 | 22 | private void OnEnable() 23 | { 24 | source = (PathScript)target; 25 | handleSize = serializedObject.FindProperty("handleMulti"); 26 | stepSize = serializedObject.FindProperty("step"); 27 | bakedPathResource = serializedObject.FindProperty("bakedPathResource"); 28 | } 29 | 30 | private void OnSceneGUI() 31 | { 32 | for (int i = 0; i < source.Nodes.Count; i++) 33 | { 34 | Vector3 nodePos = LocalToWorld(source.Nodes[i].localPos); 35 | Handles.color = Color.green; 36 | 37 | if (i == selectedId) 38 | continue; 39 | 40 | if (Handles.Button(nodePos, Quaternion.identity, handleSize.floatValue, HandleUtility.GetHandleSize(nodePos) * pickSize, Handles.SphereHandleCap)) 41 | { 42 | source.lastPos = source.Nodes[i].localPos; 43 | source.lastLeftHandlePos = source.Nodes[i].leftHandle; 44 | source.lastRightHandlePos = source.Nodes[i].rightHandle; 45 | currentSelectedNode = SelectedNode.Main; 46 | selectedId = i; 47 | } 48 | } 49 | 50 | if (selectedId >= 0) 51 | DrawBezierControl(selectedId); 52 | } 53 | 54 | public override void OnInspectorGUI() 55 | { 56 | serializedObject.Update(); 57 | 58 | if (source.Nodes.Count == 0) 59 | selectedId = -1; 60 | 61 | EditorGUI.BeginChangeCheck(); 62 | 63 | Undo.RecordObject(source, "Modify Path Properties"); 64 | 65 | DrawNodeInspector(selectedId); 66 | 67 | if (GUILayout.Button("Add Node")) 68 | source.AddNode(); 69 | 70 | source.closeLoop = EditorGUILayout.Toggle("Close Loop", source.closeLoop); 71 | source.showUpVector = EditorGUILayout.Toggle("Show Orientation", source.showUpVector); 72 | 73 | EditorGUILayout.PropertyField(handleSize, new GUIContent("Handle Size")); 74 | EditorGUILayout.PropertyField(stepSize, new GUIContent("Step Size")); 75 | 76 | EditorGUILayout.LabelField(string.Format("Path Length: {0}", source.PathDistance)); 77 | 78 | DrawBakeInspector(); 79 | 80 | if (EditorGUI.EndChangeCheck()) 81 | { 82 | EditorUtility.SetDirty(source); 83 | } 84 | 85 | serializedObject.ApplyModifiedProperties(); 86 | } 87 | 88 | void DrawBakeInspector() 89 | { 90 | EditorGUILayout.PropertyField(bakedPathResource, new GUIContent("Baked Path")); 91 | if (bakedPathResource == null) return; 92 | if (bakedPathResource.objectReferenceValue is BakedPath bakeResource) 93 | { 94 | if (GUILayout.Button("BAKE")) 95 | { 96 | bakeResource.Bake((PathScript)target); 97 | } 98 | } 99 | } 100 | 101 | void DrawNodeInspector(int id) 102 | { 103 | EditorGUILayout.BeginVertical("Box"); 104 | if (id < 0) 105 | EditorGUILayout.LabelField(string.Format("No selected node")); 106 | else 107 | { 108 | EditorGUILayout.LabelField(string.Format("Current selected Node: {0}", id)); 109 | source.Nodes[id].orientation = EditorGUILayout.FloatField("Orientation: ", source.Nodes[id].orientation); 110 | source.Nodes[id].tangentType = (TangentType)EditorGUILayout.EnumPopup("Tangent Type: ", source.Nodes[id].tangentType); 111 | if (GUILayout.Button("Delete Selected Node")) 112 | { 113 | source.RemoveNode(id); 114 | selectedId = -1; 115 | } 116 | } 117 | 118 | EditorGUILayout.EndVertical(); 119 | } 120 | 121 | void DrawBezierControl(int id) 122 | { 123 | EditorGUI.BeginChangeCheck(); 124 | 125 | Undo.RecordObject(source, "Modify Path Nodes"); 126 | 127 | switch(currentSelectedNode) 128 | { 129 | case SelectedNode.Main: 130 | //show position handle for main node, show button for tangent nodes 131 | source.Nodes[id].localPos = WorldToLocal(Handles.PositionHandle(LocalToWorld(source.Nodes[id].localPos), Quaternion.identity)); 132 | DrawNodeButton(source.Nodes[id].leftHandle, SelectedNode.LeftTangent, handleSize.floatValue * 0.6f, Color.red); 133 | DrawNodeButton(source.Nodes[id].rightHandle, SelectedNode.RightTangent, handleSize.floatValue * 0.6f, Color.red); 134 | break; 135 | case SelectedNode.LeftTangent: 136 | source.Nodes[id].leftHandle = WorldToLocal(Handles.PositionHandle(LocalToWorld(source.Nodes[id].leftHandle), Quaternion.identity)); 137 | DrawNodeButton(source.Nodes[id].localPos, SelectedNode.Main, handleSize.floatValue, Color.green); 138 | DrawNodeButton(source.Nodes[id].rightHandle, SelectedNode.RightTangent, handleSize.floatValue * 0.6f, Color.red); 139 | break; 140 | case SelectedNode.RightTangent: 141 | source.Nodes[id].rightHandle = WorldToLocal(Handles.PositionHandle(LocalToWorld(source.Nodes[id].rightHandle), Quaternion.identity)); 142 | DrawNodeButton(source.Nodes[id].localPos, SelectedNode.Main, handleSize.floatValue, Color.green); 143 | DrawNodeButton(source.Nodes[id].leftHandle, SelectedNode.LeftTangent, handleSize.floatValue * 0.6f, Color.red); 144 | break; 145 | } 146 | 147 | Handles.color = Color.yellow; 148 | Handles.DrawDottedLine(LocalToWorld(source.Nodes[id].leftHandle), LocalToWorld(source.Nodes[id].localPos), 3f); 149 | Handles.DrawDottedLine(LocalToWorld(source.Nodes[id].localPos), LocalToWorld(source.Nodes[id].rightHandle), 3f); 150 | 151 | //source.UpdatePath(); 152 | 153 | MovedPoints(source.Nodes[id]); 154 | 155 | if (source.Nodes[id].tangentType == TangentType.Aligned) 156 | MovedTangent(source.Nodes[id]); 157 | 158 | if (EditorGUI.EndChangeCheck()) 159 | { 160 | EditorUtility.SetDirty(source); 161 | } 162 | } 163 | 164 | private void DrawNodeButton(Vector3 pos, SelectedNode newNode, float radius, Color color = default) 165 | { 166 | Vector3 nodePos = LocalToWorld(pos); 167 | Handles.color = color; 168 | if (Handles.Button(nodePos, Quaternion.identity, radius, HandleUtility.GetHandleSize(nodePos) * subPickSize, Handles.SphereHandleCap)) 169 | { 170 | currentSelectedNode = newNode; 171 | } 172 | } 173 | 174 | private void MovedPoints(Node node) 175 | { 176 | if (source.lastPos == node.localPos) 177 | return; 178 | 179 | Vector3 delta = node.localPos - source.lastPos; 180 | node.leftHandle += delta; 181 | node.rightHandle += delta; 182 | source.lastPos = node.localPos; 183 | } 184 | 185 | private void MovedTangent(Node node) 186 | { 187 | if (source.lastLeftHandlePos != node.leftHandle) 188 | { 189 | node.rightHandle = AdjustTangent(node.leftHandle, node.rightHandle, node.localPos); 190 | source.lastLeftHandlePos = node.leftHandle; 191 | } 192 | else if (source.lastRightHandlePos != node.rightHandle) 193 | { 194 | node.leftHandle = AdjustTangent(node.rightHandle, node.leftHandle, node.localPos); 195 | source.lastRightHandlePos = node.rightHandle; 196 | } 197 | } 198 | 199 | Vector3 AdjustTangent(Vector3 movedTangent, Vector3 followTangent, Vector3 midPoint) 200 | { 201 | Vector3 direction = (movedTangent - midPoint).normalized; 202 | 203 | float adjustLength = (followTangent - midPoint).magnitude; 204 | 205 | return midPoint + (-direction * adjustLength); 206 | } 207 | 208 | Vector3 LocalToWorld(Vector3 localPos) 209 | { 210 | return source.transform.TransformPoint(localPos); 211 | } 212 | 213 | Vector3 WorldToLocal(Vector3 worldPos) 214 | { 215 | return source.transform.InverseTransformPoint(worldPos); 216 | } 217 | } 218 | } -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Editor/PathScriptEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f16a05e96216a0b4eb556f4f0e00a6e2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Editor/PathTools.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PathTools.Editor", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:c456118840304d04db015b8e374f1124" 6 | ], 7 | "includePlatforms": [], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Editor/PathTools.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e695f9165cf55364b9b22ed4a3879450 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 29b25466798c0174ebc9ee3460bf395d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/BakedPath.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | 4 | namespace Romi.PathTools 5 | { 6 | public class BakedPath : PathBase 7 | { 8 | [SerializeField] private AnimationCurve[] position; 9 | [SerializeField] private AnimationCurve[] orientation; 10 | [SerializeField] private AnimationCurve[] upVector; 11 | [SerializeField, HideInInspector] private float distance; 12 | 13 | public override float PathDistance => distance; 14 | 15 | public void Bake(PathScript path) 16 | { 17 | if (path == null) return; 18 | 19 | distance = path.PathDistance; 20 | 21 | var step = path.Step; 22 | 23 | var currentDistance = 0f; 24 | 25 | position = new AnimationCurve[3]; 26 | orientation = new AnimationCurve[4]; 27 | upVector = new AnimationCurve[3]; 28 | 29 | while (currentDistance < distance) 30 | { 31 | var t = currentDistance / distance; 32 | 33 | var pos = path.GetPositionAtDistance(currentDistance, true); 34 | var rot = path.GetRotationAtDistance(currentDistance, path.GetUpVectorAtDistance(currentDistance)); 35 | var up = path.GetUpVectorAtDistance(currentDistance); 36 | 37 | for (var i = 0; i < position.Length; i++) 38 | { 39 | if (position[i] == null) 40 | { 41 | position[i] = new AnimationCurve(); 42 | position[i].preWrapMode = WrapMode.Loop; 43 | position[i].postWrapMode = WrapMode.Loop; 44 | } 45 | 46 | position[i].AddKey(t, pos[i]); 47 | } 48 | 49 | for (var i = 0; i < orientation.Length; i++) 50 | { 51 | if (orientation[i] == null) 52 | { 53 | orientation[i] = new AnimationCurve(); 54 | orientation[i].preWrapMode = WrapMode.Loop; 55 | orientation[i].postWrapMode = WrapMode.Loop; 56 | } 57 | 58 | orientation[i].AddKey(t, rot[i]); 59 | } 60 | 61 | for (var i = 0; i < upVector.Length; i++) 62 | { 63 | if (upVector[i] == null) 64 | { 65 | upVector[i] = new AnimationCurve(); 66 | upVector[i].preWrapMode = WrapMode.Loop; 67 | upVector[i].postWrapMode = WrapMode.Loop; 68 | } 69 | 70 | upVector[i].AddKey(t, up[i]); 71 | } 72 | 73 | currentDistance += step; 74 | } 75 | 76 | var lastPos = path.GetPositionAtDistance(0f, true); 77 | for (var i = 0; i < position.Length; i++) 78 | { 79 | position[i].AddKey(1f, lastPos[i]); 80 | } 81 | 82 | var lastRot = path.GetRotationAtDistance(0f); 83 | for (var i = 0; i < orientation.Length; i++) 84 | { 85 | orientation[i].AddKey(1f, lastRot[i]); 86 | } 87 | 88 | var lastUp = path.GetUpVectorAtDistance(0f); 89 | for (var i = 0; i < upVector.Length; i++) 90 | { 91 | upVector[i].AddKey(1f, lastUp[i]); 92 | } 93 | 94 | EditorUtility.SetDirty(this); 95 | AssetDatabase.SaveAssets(); 96 | AssetDatabase.Refresh(); 97 | } 98 | 99 | public override Vector3 GetPositionAtDistance(float distance, bool local = false) 100 | { 101 | var t = (distance % PathDistance) / PathDistance; 102 | var pos = new Vector3(position[0].Evaluate(t), position[1].Evaluate(t), position[2].Evaluate(t)); 103 | return local ? pos : transform.TransformPoint(pos); 104 | } 105 | 106 | public override Quaternion GetRotationAtDistance(float distance) 107 | { 108 | var t = distance / PathDistance; 109 | var rot = new Quaternion(orientation[0].Evaluate(t), orientation[1].Evaluate(t), orientation[2].Evaluate(t), orientation[3].Evaluate(t)); 110 | return rot; 111 | } 112 | 113 | public override Quaternion GetRotationAtDistance(float distance, Vector3 up) 114 | { 115 | return GetRotationAtDistance(distance); 116 | } 117 | 118 | public override Vector3 GetUpVectorAtDistance(float distance) 119 | { 120 | var t = distance / PathDistance; 121 | var up = new Vector3(upVector[0].Evaluate(t), upVector[1].Evaluate(t), upVector[2].Evaluate(t)); 122 | return up; 123 | } 124 | 125 | public override bool IsPathReady() 126 | { 127 | var ready = true; 128 | 129 | ready &= position != null && position.Length > 0; 130 | ready &= orientation != null && orientation.Length > 0; 131 | ready &= upVector != null && upVector.Length > 0; 132 | 133 | foreach (var item in position) 134 | { 135 | ready &= item != null && item.length > 0; 136 | } 137 | 138 | foreach (var item in orientation) 139 | { 140 | ready &= item != null && item.length > 0; 141 | } 142 | 143 | foreach (var item in upVector) 144 | { 145 | ready &= item != null && item.length > 0; 146 | } 147 | 148 | return ready; 149 | } 150 | 151 | #if UNITY_EDITOR 152 | private void OnDrawGizmos() 153 | { 154 | if (!IsPathReady()) return; 155 | 156 | var step = 1f/position[0].length; 157 | 158 | for (float i = step; i < PathDistance; i += step) 159 | { 160 | Gizmos.color = Color.green; 161 | Gizmos.DrawLine(GetPositionAtDistance(i), GetPositionAtDistance(i - step)); 162 | } 163 | } 164 | #endif 165 | } 166 | } -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/BakedPath.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e4f8615bb0f6b84a9922c67735277e5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/MoveAlongPath.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Romi.PathTools 4 | { 5 | public class MoveAlongPath : MonoBehaviour 6 | { 7 | [SerializeField] PathBase path; 8 | [SerializeField] float speed = 2f, rotationSpeed = 5f; 9 | [SerializeField] LoopMode loopMode; 10 | 11 | [Space(20)] 12 | [SerializeField] bool useCustomUpVector; 13 | [SerializeField] Vector3 customUpVector = Vector3.up; 14 | 15 | [Header("Debug")] 16 | [SerializeField] float distance; 17 | [SerializeField] float pathLength; 18 | 19 | private float runtimeDistance; 20 | private float speedDirection = 1f; 21 | 22 | //only for loop mode stop, to stop update from running 23 | private bool arrived; 24 | 25 | private void Start() 26 | { 27 | runtimeDistance = 0f; 28 | } 29 | 30 | // Update is called once per frame 31 | void Update() 32 | { 33 | if (path == null) 34 | { 35 | return; 36 | } 37 | 38 | if (arrived) 39 | return; 40 | 41 | runtimeDistance += speed * speedDirection * Time.deltaTime; 42 | 43 | if (loopMode == LoopMode.PingPong) 44 | { 45 | if (runtimeDistance >= path.PathDistance || runtimeDistance <= 0f) 46 | { 47 | speedDirection *= -1f; 48 | } 49 | } 50 | else if (loopMode == LoopMode.Stop) 51 | { 52 | var adjustedDistance = path.PathDistance * 0.999f; 53 | 54 | runtimeDistance = Mathf.Clamp(runtimeDistance, 0f, adjustedDistance); 55 | 56 | if (runtimeDistance >= adjustedDistance) 57 | arrived = true; 58 | } 59 | else if (loopMode == LoopMode.Loop) 60 | { 61 | runtimeDistance %= path.PathDistance; 62 | } 63 | 64 | transform.position = path.GetPositionAtDistance(runtimeDistance); 65 | Quaternion targetRot = path.GetRotationAtDistance(runtimeDistance, useCustomUpVector ? customUpVector : path.GetUpVectorAtDistance(runtimeDistance)); 66 | transform.rotation = Quaternion.Lerp(transform.rotation, targetRot, rotationSpeed * Time.deltaTime); 67 | } 68 | 69 | #if UNITY_EDITOR 70 | private void OnValidate() 71 | { 72 | if (path == null) return; 73 | 74 | transform.position = path.GetPositionAtDistance(distance % path.PathDistance); 75 | Quaternion targetRot = path.GetRotationAtDistance(distance % path.PathDistance); 76 | transform.rotation = targetRot; 77 | 78 | pathLength = path.PathDistance; 79 | } 80 | #endif 81 | } 82 | } -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/MoveAlongPath.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6d8a9a9f3ab292b45b2befbb9929177e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PathBase.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Romi.PathTools 4 | { 5 | public abstract class PathBase : MonoBehaviour 6 | { 7 | public abstract Vector3 GetPositionAtDistance(float distance, bool local = false); 8 | public abstract Quaternion GetRotationAtDistance(float distance, Vector3 up); 9 | public abstract Quaternion GetRotationAtDistance(float distance); 10 | public abstract Vector3 GetUpVectorAtDistance(float distance); 11 | public abstract bool IsPathReady(); 12 | public abstract float PathDistance { get; } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PathBase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 605ae6e40494ade459a29f5a52df2da2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PathScript.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace Romi.PathTools 5 | { 6 | public class PathScript : PathBase 7 | { 8 | #region VARIABLES 9 | [SerializeField] private List nodes = new List(); 10 | [SerializeField] private int selectedId; 11 | #pragma warning disable 0414 12 | [SerializeField] private float handleMulti = 0.2f; 13 | #pragma warning restore 0414 14 | [SerializeField] private float step = 0.25f; 15 | [SerializeField] private BakedPath bakedPathResource; 16 | public bool closeLoop, showUpVector; 17 | 18 | private float _pathDistance; 19 | 20 | public Vector3 lastPos, lastLeftHandlePos, lastRightHandlePos; 21 | 22 | [SerializeField] private List curvedPositions = new List(); 23 | [SerializeField] private List orientations = new List(); 24 | #endregion 25 | 26 | #region PROPERTIES 27 | public List Nodes { get => nodes; } 28 | public int SelectedId { get => selectedId; set => selectedId = value; } 29 | public override float PathDistance => _pathDistance; 30 | public float Step => step; 31 | #endregion 32 | 33 | #region PRIVATE METHODS 34 | private void Awake() 35 | { 36 | UpdatePath(); 37 | } 38 | 39 | Vector3 CalculateBezierPath(Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float t) 40 | { 41 | float oneMinusT = 1f - t; 42 | 43 | Vector3 result = Mathf.Pow(oneMinusT, 3f) * p0 + 3f * Mathf.Pow(oneMinusT, 2f) * t * p1 44 | + 3f * oneMinusT * (t * t) * p2 + Mathf.Pow(t, 3f) * p3; 45 | 46 | return result; 47 | } 48 | 49 | List GetCurveNodes() 50 | { 51 | List curvedNodes = new List(); 52 | 53 | for (int i = 0; i < nodes.Count - 1; i++) 54 | { 55 | Vector3 p0 = (nodes[i].localPos); 56 | Vector3 p1 = (nodes[i].rightHandle); 57 | Vector3 p2 = (nodes[i + 1].leftHandle); 58 | Vector3 p3 = (nodes[i + 1].localPos); 59 | 60 | Interpolate(ref curvedNodes, p0, p1, p2, p3, i, closeLoop); 61 | } 62 | 63 | if (closeLoop) 64 | { 65 | int id = nodes.Count - 1; 66 | 67 | Vector3 p0 = (nodes[id].localPos); 68 | Vector3 p1 = (nodes[id].rightHandle); 69 | Vector3 p2 = (nodes[0].leftHandle); 70 | Vector3 p3 = (nodes[0].localPos); 71 | 72 | Interpolate(ref curvedNodes, p0, p1, p2, p3, id, closeLoop); 73 | } 74 | 75 | void Interpolate(ref List refNode, Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, int i, bool closeLoop) 76 | { 77 | int start = !closeLoop ? (i == 0 ? 0 : 1) : 0; 78 | int endOffset = closeLoop ? -1 : 0; 79 | 80 | var segment = GetSegment(p0, p1, p2, p3, step, out var distance); 81 | 82 | for (int j = start; j <= segment + endOffset; j++) 83 | { 84 | float t = j / (float)segment; 85 | 86 | var point = CalculateBezierPath(p0, p1, p2, p3, t); 87 | 88 | refNode.Add(point); 89 | } 90 | } 91 | 92 | _pathDistance = 0f; 93 | 94 | for (int i = 0; i < curvedNodes.Count; i++) 95 | { 96 | Vector3 a = (closeLoop && i == 0) ? curvedNodes[curvedNodes.Count - 1] : curvedNodes[Mathf.Max(i - 1, 0)]; 97 | Vector3 b = curvedNodes[i]; 98 | float distance = (b - a).magnitude; 99 | _pathDistance += distance; 100 | } 101 | 102 | return curvedNodes; 103 | } 104 | 105 | List GetOrientationAlongCurve() 106 | { 107 | List orientationNodes = new List(); 108 | 109 | for (int i = 0; i < nodes.Count - 1; i++) 110 | { 111 | Interpolate(ref orientationNodes, nodes, i, i + 1, closeLoop); 112 | } 113 | 114 | if (closeLoop) 115 | { 116 | int id = nodes.Count - 1; 117 | 118 | Interpolate(ref orientationNodes, nodes, id, 0, closeLoop); 119 | } 120 | 121 | void Interpolate(ref List refOrientationNodes, List _nodes, int i, int next, bool closeLoop) 122 | { 123 | int start = !closeLoop ? (i == 0 ? 0 : 1) : 0; 124 | int endOffset = closeLoop ? -1 : 0; 125 | 126 | var segment = GetSegment(_nodes[i].localPos,_nodes[i].rightHandle,_nodes[next].leftHandle,_nodes[next].localPos, step, out var distance); 127 | 128 | for (int j = start; j <= segment + endOffset; j++) 129 | { 130 | float t = j / (float)segment; 131 | 132 | var value = Mathf.Lerp(_nodes[i].orientation, _nodes[next].orientation, t); 133 | 134 | refOrientationNodes.Add(value); 135 | } 136 | } 137 | 138 | return orientationNodes; 139 | } 140 | 141 | private int GetSegment(Vector3 p0, Vector3 p1, Vector3 p2, Vector3 p3, float step,out float segmentDistance) 142 | { 143 | var chord = (p3 - p0).magnitude; 144 | segmentDistance = (p0 - p1).magnitude + (p1 - p2).magnitude + (p2 - p3).magnitude; 145 | var segment = (int)(((segmentDistance + chord) / 2)/step); 146 | return segment; 147 | } 148 | 149 | Vector3 LocalToWorld(Vector3 localPos) 150 | { 151 | return transform.TransformPoint(localPos); 152 | } 153 | 154 | Vector3 WorldToLocal(Vector3 worldPos) 155 | { 156 | return transform.InverseTransformPoint(worldPos); 157 | } 158 | 159 | #endregion 160 | 161 | #region PUBLIC METHODS 162 | public void AddNode() 163 | { 164 | Vector3 randomPos = UnityEngine.Random.insideUnitCircle; 165 | randomPos = new Vector3(randomPos.x, randomPos.z, randomPos.y); 166 | 167 | Vector3 newPos = (nodes.Count > 0 ? nodes[nodes.Count - 1].localPos : transform.position) + (randomPos * 3f); 168 | nodes.Add(new Node(newPos)); 169 | } 170 | 171 | public void RemoveNode(int id) 172 | { 173 | nodes.RemoveAt(id); 174 | } 175 | 176 | public void AdjustNode(int id, Vector3 newPos, bool moveTangent = false) 177 | { 178 | if (id >= nodes.Count) 179 | { 180 | Debug.LogWarning($"Id {id} is out of range"); 181 | return; 182 | } 183 | 184 | var newLocalPos = transform.InverseTransformPoint(newPos); 185 | 186 | if (moveTangent) 187 | { 188 | var offset = newLocalPos - nodes[id].localPos; 189 | nodes[id].leftHandle += offset; 190 | nodes[id].rightHandle += offset; 191 | } 192 | 193 | nodes[id].localPos = transform.InverseTransformPoint(newPos); 194 | UpdatePath(); 195 | } 196 | 197 | public void UpdatePath() 198 | { 199 | curvedPositions = GetCurveNodes(); 200 | orientations = GetOrientationAlongCurve(); 201 | } 202 | 203 | //convert distance 204 | private void GetPrecisePoint(float distance, int count, out int posIndex, out float precision) 205 | { 206 | if (Mathf.Approximately(PathDistance, 0)) 207 | { 208 | posIndex = 0; 209 | precision = 0; 210 | return; 211 | } 212 | 213 | //loop distance when below 0 or exceed max pathDistance 214 | distance = PathDistance + (distance % PathDistance); 215 | 216 | //normalize distance to range 0-1 217 | float normalizedDistance = (distance % PathDistance) / PathDistance; 218 | 219 | //convert distance to the corresponding curved positions list Index 220 | float distanceToIndex = normalizedDistance * count; 221 | 222 | //Floor the resulting index 223 | posIndex = Mathf.FloorToInt(distanceToIndex); 224 | 225 | //extract the decimals from the resulting index 226 | precision = distanceToIndex - posIndex; 227 | } 228 | 229 | public override Vector3 GetPositionAtDistance(float distance, bool local = false) 230 | { 231 | Vector3 pos = Vector3.zero; 232 | 233 | GetPrecisePoint(distance, curvedPositions.Count, out int posIndex, out float precision); 234 | 235 | bool lastPosInList = posIndex == curvedPositions.Count - 1; 236 | 237 | //define the next index 238 | int nextId = lastPosInList ? (!closeLoop ? posIndex : 0) : posIndex + 1; 239 | 240 | if (lastPosInList && !closeLoop) 241 | precision = 0f; 242 | 243 | pos = Vector3.Lerp(curvedPositions[posIndex], curvedPositions[nextId], precision); 244 | 245 | if (local) 246 | return pos; 247 | 248 | try 249 | { 250 | //get the precise position on curve at distance 251 | pos = transform.TransformPoint(pos); 252 | return pos; 253 | } 254 | catch 255 | { 256 | return default; 257 | } 258 | } 259 | 260 | public override Quaternion GetRotationAtDistance(float distance, Vector3 up) 261 | { 262 | Quaternion quat; 263 | 264 | GetPrecisePoint(distance, curvedPositions.Count, out int posIndex, out float precision); 265 | 266 | //int nextId = posIndex == curvedPositions.Count - 1 ? 0 : posIndex + 1; 267 | int nextId = posIndex == 0 ? (closeLoop ? curvedPositions.Count - 1 : 1) : posIndex - 1; 268 | 269 | try 270 | { 271 | if (!closeLoop && posIndex == 0) 272 | quat = Quaternion.LookRotation(curvedPositions[posIndex] - curvedPositions[nextId], up); 273 | else 274 | quat = Quaternion.LookRotation(curvedPositions[nextId] - curvedPositions[posIndex], up); 275 | 276 | return quat; 277 | } 278 | catch 279 | { 280 | return Quaternion.identity; 281 | } 282 | } 283 | 284 | public override Quaternion GetRotationAtDistance(float distance) 285 | { 286 | return GetRotationAtDistance(distance, GetUpVectorAtDistance(distance)); 287 | } 288 | 289 | public override Vector3 GetUpVectorAtDistance(float distance) 290 | { 291 | GetPrecisePoint(distance, curvedPositions.Count, out int posIndex, out float precision); 292 | 293 | Vector3 direction; 294 | 295 | int nextId = posIndex == 0 ? (closeLoop ? curvedPositions.Count - 1 : 1) : posIndex - 1; 296 | 297 | try 298 | { 299 | //draw point up with orientation influence 300 | if (!closeLoop && posIndex == 0) 301 | direction = (curvedPositions[nextId] - curvedPositions[posIndex]).normalized; 302 | else 303 | direction = (curvedPositions[posIndex] - curvedPositions[nextId]).normalized; 304 | 305 | Vector3 finalDirection = Quaternion.AngleAxis(orientations[posIndex], direction) * Vector3.up; 306 | 307 | return finalDirection; 308 | } 309 | catch 310 | { 311 | return default; 312 | } 313 | } 314 | 315 | public override bool IsPathReady() 316 | { 317 | return curvedPositions.Count > 0; 318 | } 319 | 320 | #endregion 321 | 322 | #if UNITY_EDITOR 323 | private void OnDrawGizmos() 324 | { 325 | if (!Application.isPlaying) 326 | UpdatePath(); 327 | 328 | for (int i = 0; i < curvedPositions.Count; i++) 329 | { 330 | if (!closeLoop && i == 0) 331 | continue; 332 | 333 | Gizmos.color = Color.green; 334 | Gizmos.DrawLine(LocalToWorld(curvedPositions[i == 0 ? curvedPositions.Count - 1 : i - 1]), LocalToWorld(curvedPositions[i])); 335 | } 336 | 337 | if (showUpVector) 338 | { 339 | for (int i = 0; i < orientations.Count; i++) 340 | { 341 | //draw point up with orientation influence 342 | int nextId = i == 0 ? (closeLoop ? curvedPositions.Count - 1 : 1) : i - 1; 343 | Vector3 direction; 344 | 345 | //draw point up with orientation influence 346 | if (!closeLoop && i == 0) 347 | direction = (curvedPositions[nextId] - curvedPositions[i]).normalized; 348 | else 349 | direction = (curvedPositions[i] - curvedPositions[nextId]).normalized; 350 | 351 | Vector3 finalDirection = Quaternion.AngleAxis(orientations[i], direction) * Vector3.up; 352 | var worldPos = LocalToWorld(curvedPositions[i]); 353 | Gizmos.color = Color.red; 354 | Gizmos.DrawLine(worldPos, worldPos + (finalDirection * 0.4f)); 355 | } 356 | } 357 | } 358 | #endif 359 | } 360 | 361 | [System.Serializable] 362 | public class Node 363 | { 364 | public Vector3 localPos, leftHandle, rightHandle; 365 | public float orientation; 366 | public TangentType tangentType = TangentType.Aligned; 367 | public Node(Vector3 pos) 368 | { 369 | localPos = pos; 370 | leftHandle = pos + Vector3.left; 371 | rightHandle = pos + Vector3.right; 372 | } 373 | } 374 | } 375 | 376 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PathScript.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6167c82791949164aa5f23a4f1f88ac9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PathTools.Runtime.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PathTools.Runtime" 3 | } 4 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PathTools.Runtime.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c456118840304d04db015b8e374f1124 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6c06e4a0daeabe47aa19783fa185c6b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions/PathTools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77f9d10e747f2d746976c2bec73f107c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions/PathTools/PathToolsFollow.cs: -------------------------------------------------------------------------------- 1 | #if PLAYMAKER 2 | using UnityEngine; 3 | using Romi.PathTools; 4 | 5 | namespace HutongGames.PlayMaker.Actions 6 | { 7 | [ActionCategory("Path Tools")] 8 | [ActionTarget(typeof(PathBase), "path")] 9 | public class PathToolsFollow : FsmStateAction 10 | { 11 | public FsmOwnerDefault objectFollowPath; 12 | 13 | [ActionSection("Path Settings")] 14 | [RequiredField] 15 | [ObjectType(typeof(PathBase))] 16 | public FsmObject path; 17 | 18 | public FsmFloat speed; 19 | 20 | public FsmFloat rotationSpeed; 21 | public FsmBool followPathRotation; 22 | 23 | [Tooltip("Set it to Use Variable:NONE, to use the path nodes up vector")] 24 | public FsmVector3 customUpVector; 25 | 26 | [ObjectType(typeof(LoopMode))] 27 | public FsmEnum loopType; 28 | 29 | [ActionSection("Result")] 30 | [UIHint(UIHint.Variable)] 31 | [Tooltip("Get the distance travelled so far.")] 32 | public FsmFloat currentDistance; 33 | 34 | [UIHint(UIHint.Variable)] 35 | [Tooltip("Get the path total distance.")] 36 | public FsmFloat pathDistance; 37 | 38 | [ActionSection("Event")] 39 | [Tooltip("Only for Loop type STOP")] 40 | public FsmEvent OnFinishedEvent; 41 | 42 | private float distance; 43 | private PathBase currentPath; 44 | private Transform objTransform; 45 | 46 | // Code that runs on entering the state. 47 | public override void OnEnter() 48 | { 49 | distance = 0f; 50 | currentPath = (PathBase)path.Value; 51 | objTransform = Fsm.GetOwnerDefaultTarget(objectFollowPath).transform; 52 | 53 | if (!pathDistance.IsNone) 54 | { 55 | pathDistance.Value = currentPath.PathDistance; 56 | } 57 | } 58 | 59 | // Code that runs every frame. 60 | public override void OnUpdate() 61 | { 62 | distance += speed.Value * Time.deltaTime; 63 | 64 | if (distance >= currentPath.PathDistance * 0.999f) 65 | { 66 | if ((LoopMode)loopType.Value == LoopMode.Stop) 67 | { 68 | Fsm.Event(OnFinishedEvent); 69 | Finish(); 70 | } 71 | } 72 | 73 | if ((LoopMode)loopType.Value == LoopMode.PingPong) 74 | { 75 | if (distance >= currentPath.PathDistance || distance <= 0f) 76 | speed.Value *= -1f; 77 | } 78 | 79 | if ((LoopMode)loopType.Value == LoopMode.Loop) 80 | { 81 | distance %= currentPath.PathDistance; 82 | } 83 | 84 | objTransform.position = currentPath.GetPositionAtDistance(distance); 85 | 86 | if (followPathRotation.Value) 87 | { 88 | Vector3 up = customUpVector.IsNone ? currentPath.GetUpVectorAtDistance(distance) : customUpVector.Value; 89 | objTransform.rotation = Quaternion.Lerp(objTransform.rotation, currentPath.GetRotationAtDistance(distance, up), rotationSpeed.Value * Time.deltaTime); 90 | } 91 | 92 | if (!currentDistance.IsNone) 93 | { 94 | currentDistance.Value = distance; 95 | } 96 | } 97 | } 98 | } 99 | #endif 100 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions/PathTools/PathToolsFollow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48083ef9177ead94899380555aa8c32f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions/PathTools/PathToolsModify.cs: -------------------------------------------------------------------------------- 1 | #if PLAYMAKER 2 | using Romi.PathTools; 3 | using UnityEngine; 4 | 5 | namespace HutongGames.PlayMaker.Actions 6 | { 7 | [ActionCategory("Path Tools")] 8 | [ActionTarget(typeof(PathScript), "path")] 9 | public class PathToolsModify : FsmStateAction 10 | { 11 | [ActionSection("Path Settings")] 12 | [RequiredField] 13 | [ObjectType(typeof(PathScript))] 14 | public FsmObject path; 15 | public FsmInt nodeId; 16 | public FsmVector3 newNodePos; 17 | public FsmBool moveTangent; 18 | 19 | // Code that runs on entering the state. 20 | public override void OnEnter() 21 | { 22 | var currentPath = (PathScript)path.Value; 23 | 24 | currentPath.AdjustNode(nodeId.Value, newNodePos.Value, moveTangent.Value); 25 | 26 | Finish(); 27 | } 28 | } 29 | 30 | } 31 | #endif -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions/PathTools/PathToolsModify.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21996046ba20f984ebfd14d4b7fc5741 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions/PathTools/Variable Type Definition.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: -1572125070, guid: 336aa50a81ce85b47b50a7b6adf85a76, type: 3} 13 | m_Name: Variable Type Definition 14 | m_EditorClassIdentifier: 15 | VariableTypesDefinition: 16 | - Name: PathTools 17 | Type: Romi.PathTools.PathBase 18 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/PlayMaker Custom Actions/PathTools/Variable Type Definition.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff61f035083f01e4c90a408c5c7862cb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/TangentType.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | namespace Romi.PathTools 6 | { 7 | public enum TangentType 8 | { 9 | Aligned, 10 | Free 11 | } 12 | 13 | public enum SelectedNode 14 | { 15 | Main, 16 | LeftTangent, 17 | RightTangent 18 | } 19 | 20 | public enum LoopMode 21 | { 22 | Stop, 23 | Loop, 24 | PingPong 25 | } 26 | } -------------------------------------------------------------------------------- /Assets/PathTools/Scripts/Runtime/TangentType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 880e12913a59c68468baad3dbb4cf624 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/PathTools/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.romifauzi.pathtools", 3 | "version": "1.0.0", 4 | "displayName": "Romi's Path Tools", 5 | "description": "A Lightweight Path/Curve generation tool, allowing for smooth movement along the curve. Paths are baked-able for more performance", 6 | "unity": "2020.3", 7 | "keywords": [ 8 | "path", 9 | "curve", 10 | "bezier curve", 11 | "path movement" 12 | ], 13 | "author": { 14 | "name": "Romi Fauzi" 15 | }, 16 | "repository": { 17 | "type": "git", 18 | "url": "https://github.com/romifauzi/PathTools.git" 19 | }, 20 | "samples": [ 21 | { 22 | "displayName": "Path Tools Movement Example", 23 | "description": "Contains sample scene on how to use Path Tools", 24 | "path": "PathToolsExamples/Scenes" 25 | }, 26 | { 27 | "displayName": "Path Tools Playmaker Example", 28 | "description": "Contains sample scene on how to use Path Tools with Playmaker Visual Scripting. REQUIRES Playmaker Addon Installed", 29 | "path": "PathToolsExamples/PlaymakerScenes" 30 | } 31 | ] 32 | } -------------------------------------------------------------------------------- /Assets/PathTools/package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44809b89026d6134f926c517305d0215 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 002c89f108a697847977b73c3bbe823e 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /Packages/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": "1.15.13", 4 | "com.unity.ide.rider": "2.0.7", 5 | "com.unity.ide.visualstudio": "2.0.14", 6 | "com.unity.ide.vscode": "1.2.5", 7 | "com.unity.test-framework": "1.1.31", 8 | "com.unity.textmeshpro": "3.0.6", 9 | "com.unity.timeline": "1.4.8", 10 | "com.unity.ugui": "1.0.0", 11 | "com.unity.modules.ai": "1.0.0", 12 | "com.unity.modules.androidjni": "1.0.0", 13 | "com.unity.modules.animation": "1.0.0", 14 | "com.unity.modules.assetbundle": "1.0.0", 15 | "com.unity.modules.audio": "1.0.0", 16 | "com.unity.modules.cloth": "1.0.0", 17 | "com.unity.modules.director": "1.0.0", 18 | "com.unity.modules.imageconversion": "1.0.0", 19 | "com.unity.modules.imgui": "1.0.0", 20 | "com.unity.modules.jsonserialize": "1.0.0", 21 | "com.unity.modules.particlesystem": "1.0.0", 22 | "com.unity.modules.physics": "1.0.0", 23 | "com.unity.modules.physics2d": "1.0.0", 24 | "com.unity.modules.screencapture": "1.0.0", 25 | "com.unity.modules.terrain": "1.0.0", 26 | "com.unity.modules.terrainphysics": "1.0.0", 27 | "com.unity.modules.tilemap": "1.0.0", 28 | "com.unity.modules.ui": "1.0.0", 29 | "com.unity.modules.uielements": "1.0.0", 30 | "com.unity.modules.umbra": "1.0.0", 31 | "com.unity.modules.unityanalytics": "1.0.0", 32 | "com.unity.modules.unitywebrequest": "1.0.0", 33 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 34 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 35 | "com.unity.modules.unitywebrequesttexture": "1.0.0", 36 | "com.unity.modules.unitywebrequestwww": "1.0.0", 37 | "com.unity.modules.vehicles": "1.0.0", 38 | "com.unity.modules.video": "1.0.0", 39 | "com.unity.modules.vr": "1.0.0", 40 | "com.unity.modules.wind": "1.0.0", 41 | "com.unity.modules.xr": "1.0.0" 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Packages/packages-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "com.unity.collab-proxy": { 4 | "version": "1.15.13", 5 | "depth": 0, 6 | "source": "registry", 7 | "dependencies": { 8 | "com.unity.services.core": "1.0.1" 9 | }, 10 | "url": "https://packages.unity.com" 11 | }, 12 | "com.unity.ext.nunit": { 13 | "version": "1.0.6", 14 | "depth": 1, 15 | "source": "registry", 16 | "dependencies": {}, 17 | "url": "https://packages.unity.com" 18 | }, 19 | "com.unity.ide.rider": { 20 | "version": "2.0.7", 21 | "depth": 0, 22 | "source": "registry", 23 | "dependencies": { 24 | "com.unity.test-framework": "1.1.1" 25 | }, 26 | "url": "https://packages.unity.com" 27 | }, 28 | "com.unity.ide.visualstudio": { 29 | "version": "2.0.14", 30 | "depth": 0, 31 | "source": "registry", 32 | "dependencies": { 33 | "com.unity.test-framework": "1.1.9" 34 | }, 35 | "url": "https://packages.unity.com" 36 | }, 37 | "com.unity.ide.vscode": { 38 | "version": "1.2.5", 39 | "depth": 0, 40 | "source": "registry", 41 | "dependencies": {}, 42 | "url": "https://packages.unity.com" 43 | }, 44 | "com.unity.services.core": { 45 | "version": "1.0.1", 46 | "depth": 1, 47 | "source": "registry", 48 | "dependencies": { 49 | "com.unity.modules.unitywebrequest": "1.0.0" 50 | }, 51 | "url": "https://packages.unity.com" 52 | }, 53 | "com.unity.test-framework": { 54 | "version": "1.1.31", 55 | "depth": 0, 56 | "source": "registry", 57 | "dependencies": { 58 | "com.unity.ext.nunit": "1.0.6", 59 | "com.unity.modules.imgui": "1.0.0", 60 | "com.unity.modules.jsonserialize": "1.0.0" 61 | }, 62 | "url": "https://packages.unity.com" 63 | }, 64 | "com.unity.textmeshpro": { 65 | "version": "3.0.6", 66 | "depth": 0, 67 | "source": "registry", 68 | "dependencies": { 69 | "com.unity.ugui": "1.0.0" 70 | }, 71 | "url": "https://packages.unity.com" 72 | }, 73 | "com.unity.timeline": { 74 | "version": "1.4.8", 75 | "depth": 0, 76 | "source": "registry", 77 | "dependencies": { 78 | "com.unity.modules.director": "1.0.0", 79 | "com.unity.modules.animation": "1.0.0", 80 | "com.unity.modules.audio": "1.0.0", 81 | "com.unity.modules.particlesystem": "1.0.0" 82 | }, 83 | "url": "https://packages.unity.com" 84 | }, 85 | "com.unity.ugui": { 86 | "version": "1.0.0", 87 | "depth": 0, 88 | "source": "builtin", 89 | "dependencies": { 90 | "com.unity.modules.ui": "1.0.0", 91 | "com.unity.modules.imgui": "1.0.0" 92 | } 93 | }, 94 | "com.unity.modules.ai": { 95 | "version": "1.0.0", 96 | "depth": 0, 97 | "source": "builtin", 98 | "dependencies": {} 99 | }, 100 | "com.unity.modules.androidjni": { 101 | "version": "1.0.0", 102 | "depth": 0, 103 | "source": "builtin", 104 | "dependencies": {} 105 | }, 106 | "com.unity.modules.animation": { 107 | "version": "1.0.0", 108 | "depth": 0, 109 | "source": "builtin", 110 | "dependencies": {} 111 | }, 112 | "com.unity.modules.assetbundle": { 113 | "version": "1.0.0", 114 | "depth": 0, 115 | "source": "builtin", 116 | "dependencies": {} 117 | }, 118 | "com.unity.modules.audio": { 119 | "version": "1.0.0", 120 | "depth": 0, 121 | "source": "builtin", 122 | "dependencies": {} 123 | }, 124 | "com.unity.modules.cloth": { 125 | "version": "1.0.0", 126 | "depth": 0, 127 | "source": "builtin", 128 | "dependencies": { 129 | "com.unity.modules.physics": "1.0.0" 130 | } 131 | }, 132 | "com.unity.modules.director": { 133 | "version": "1.0.0", 134 | "depth": 0, 135 | "source": "builtin", 136 | "dependencies": { 137 | "com.unity.modules.audio": "1.0.0", 138 | "com.unity.modules.animation": "1.0.0" 139 | } 140 | }, 141 | "com.unity.modules.imageconversion": { 142 | "version": "1.0.0", 143 | "depth": 0, 144 | "source": "builtin", 145 | "dependencies": {} 146 | }, 147 | "com.unity.modules.imgui": { 148 | "version": "1.0.0", 149 | "depth": 0, 150 | "source": "builtin", 151 | "dependencies": {} 152 | }, 153 | "com.unity.modules.jsonserialize": { 154 | "version": "1.0.0", 155 | "depth": 0, 156 | "source": "builtin", 157 | "dependencies": {} 158 | }, 159 | "com.unity.modules.particlesystem": { 160 | "version": "1.0.0", 161 | "depth": 0, 162 | "source": "builtin", 163 | "dependencies": {} 164 | }, 165 | "com.unity.modules.physics": { 166 | "version": "1.0.0", 167 | "depth": 0, 168 | "source": "builtin", 169 | "dependencies": {} 170 | }, 171 | "com.unity.modules.physics2d": { 172 | "version": "1.0.0", 173 | "depth": 0, 174 | "source": "builtin", 175 | "dependencies": {} 176 | }, 177 | "com.unity.modules.screencapture": { 178 | "version": "1.0.0", 179 | "depth": 0, 180 | "source": "builtin", 181 | "dependencies": { 182 | "com.unity.modules.imageconversion": "1.0.0" 183 | } 184 | }, 185 | "com.unity.modules.subsystems": { 186 | "version": "1.0.0", 187 | "depth": 1, 188 | "source": "builtin", 189 | "dependencies": { 190 | "com.unity.modules.jsonserialize": "1.0.0" 191 | } 192 | }, 193 | "com.unity.modules.terrain": { 194 | "version": "1.0.0", 195 | "depth": 0, 196 | "source": "builtin", 197 | "dependencies": {} 198 | }, 199 | "com.unity.modules.terrainphysics": { 200 | "version": "1.0.0", 201 | "depth": 0, 202 | "source": "builtin", 203 | "dependencies": { 204 | "com.unity.modules.physics": "1.0.0", 205 | "com.unity.modules.terrain": "1.0.0" 206 | } 207 | }, 208 | "com.unity.modules.tilemap": { 209 | "version": "1.0.0", 210 | "depth": 0, 211 | "source": "builtin", 212 | "dependencies": { 213 | "com.unity.modules.physics2d": "1.0.0" 214 | } 215 | }, 216 | "com.unity.modules.ui": { 217 | "version": "1.0.0", 218 | "depth": 0, 219 | "source": "builtin", 220 | "dependencies": {} 221 | }, 222 | "com.unity.modules.uielements": { 223 | "version": "1.0.0", 224 | "depth": 0, 225 | "source": "builtin", 226 | "dependencies": { 227 | "com.unity.modules.ui": "1.0.0", 228 | "com.unity.modules.imgui": "1.0.0", 229 | "com.unity.modules.jsonserialize": "1.0.0", 230 | "com.unity.modules.uielementsnative": "1.0.0" 231 | } 232 | }, 233 | "com.unity.modules.uielementsnative": { 234 | "version": "1.0.0", 235 | "depth": 1, 236 | "source": "builtin", 237 | "dependencies": { 238 | "com.unity.modules.ui": "1.0.0", 239 | "com.unity.modules.imgui": "1.0.0", 240 | "com.unity.modules.jsonserialize": "1.0.0" 241 | } 242 | }, 243 | "com.unity.modules.umbra": { 244 | "version": "1.0.0", 245 | "depth": 0, 246 | "source": "builtin", 247 | "dependencies": {} 248 | }, 249 | "com.unity.modules.unityanalytics": { 250 | "version": "1.0.0", 251 | "depth": 0, 252 | "source": "builtin", 253 | "dependencies": { 254 | "com.unity.modules.unitywebrequest": "1.0.0", 255 | "com.unity.modules.jsonserialize": "1.0.0" 256 | } 257 | }, 258 | "com.unity.modules.unitywebrequest": { 259 | "version": "1.0.0", 260 | "depth": 0, 261 | "source": "builtin", 262 | "dependencies": {} 263 | }, 264 | "com.unity.modules.unitywebrequestassetbundle": { 265 | "version": "1.0.0", 266 | "depth": 0, 267 | "source": "builtin", 268 | "dependencies": { 269 | "com.unity.modules.assetbundle": "1.0.0", 270 | "com.unity.modules.unitywebrequest": "1.0.0" 271 | } 272 | }, 273 | "com.unity.modules.unitywebrequestaudio": { 274 | "version": "1.0.0", 275 | "depth": 0, 276 | "source": "builtin", 277 | "dependencies": { 278 | "com.unity.modules.unitywebrequest": "1.0.0", 279 | "com.unity.modules.audio": "1.0.0" 280 | } 281 | }, 282 | "com.unity.modules.unitywebrequesttexture": { 283 | "version": "1.0.0", 284 | "depth": 0, 285 | "source": "builtin", 286 | "dependencies": { 287 | "com.unity.modules.unitywebrequest": "1.0.0", 288 | "com.unity.modules.imageconversion": "1.0.0" 289 | } 290 | }, 291 | "com.unity.modules.unitywebrequestwww": { 292 | "version": "1.0.0", 293 | "depth": 0, 294 | "source": "builtin", 295 | "dependencies": { 296 | "com.unity.modules.unitywebrequest": "1.0.0", 297 | "com.unity.modules.unitywebrequestassetbundle": "1.0.0", 298 | "com.unity.modules.unitywebrequestaudio": "1.0.0", 299 | "com.unity.modules.audio": "1.0.0", 300 | "com.unity.modules.assetbundle": "1.0.0", 301 | "com.unity.modules.imageconversion": "1.0.0" 302 | } 303 | }, 304 | "com.unity.modules.vehicles": { 305 | "version": "1.0.0", 306 | "depth": 0, 307 | "source": "builtin", 308 | "dependencies": { 309 | "com.unity.modules.physics": "1.0.0" 310 | } 311 | }, 312 | "com.unity.modules.video": { 313 | "version": "1.0.0", 314 | "depth": 0, 315 | "source": "builtin", 316 | "dependencies": { 317 | "com.unity.modules.audio": "1.0.0", 318 | "com.unity.modules.ui": "1.0.0", 319 | "com.unity.modules.unitywebrequest": "1.0.0" 320 | } 321 | }, 322 | "com.unity.modules.vr": { 323 | "version": "1.0.0", 324 | "depth": 0, 325 | "source": "builtin", 326 | "dependencies": { 327 | "com.unity.modules.jsonserialize": "1.0.0", 328 | "com.unity.modules.physics": "1.0.0", 329 | "com.unity.modules.xr": "1.0.0" 330 | } 331 | }, 332 | "com.unity.modules.wind": { 333 | "version": "1.0.0", 334 | "depth": 0, 335 | "source": "builtin", 336 | "dependencies": {} 337 | }, 338 | "com.unity.modules.xr": { 339 | "version": "1.0.0", 340 | "depth": 0, 341 | "source": "builtin", 342 | "dependencies": { 343 | "com.unity.modules.physics": "1.0.0", 344 | "com.unity.modules.jsonserialize": "1.0.0", 345 | "com.unity.modules.subsystems": "1.0.0" 346 | } 347 | } 348 | } 349 | } 350 | -------------------------------------------------------------------------------- /PathTools.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/romifauzi/PathTools/66345263b8c60e57dba1602787e845818b244ce5/PathTools.gif -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Volume: 1 8 | Rolloff Scale: 1 9 | Doppler Factor: 1 10 | Default Speaker Mode: 2 11 | m_SampleRate: 0 12 | m_DSPBufferSize: 1024 13 | m_VirtualVoiceCount: 512 14 | m_RealVoiceCount: 32 15 | m_SpatializerPlugin: 16 | m_AmbisonicDecoderPlugin: 17 | m_DisableAudio: 0 18 | m_VirtualizeEffects: 1 19 | m_RequestedDSPBufferSize: 1024 20 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_SleepThreshold: 0.005 11 | m_DefaultContactOffset: 0.01 12 | m_DefaultSolverIterations: 6 13 | m_DefaultSolverVelocityIterations: 1 14 | m_QueriesHitBackfaces: 0 15 | m_QueriesHitTriggers: 1 16 | m_EnableAdaptiveForce: 0 17 | m_ClothInterCollisionDistance: 0 18 | m_ClothInterCollisionStiffness: 0 19 | m_ContactsGeneration: 1 20 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 21 | m_AutoSimulation: 1 22 | m_AutoSyncTransforms: 0 23 | m_ReuseCollisionCallbacks: 1 24 | m_ClothInterCollisionSettingsToggle: 0 25 | m_ContactPairsMode: 0 26 | m_BroadphaseType: 0 27 | m_WorldBounds: 28 | m_Center: {x: 0, y: 0, z: 0} 29 | m_Extent: {x: 250, y: 250, z: 250} 30 | m_WorldSubdivisions: 8 31 | m_FrictionType: 0 32 | m_EnableEnhancedDeterminism: 0 33 | m_EnableUnifiedHeightmaps: 1 34 | m_DefaultMaxAngluarSpeed: 7 35 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: [] 8 | m_configObjects: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 11 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 0 10 | m_DefaultBehaviorMode: 0 11 | m_PrefabRegularEnvironment: {fileID: 0} 12 | m_PrefabUIEnvironment: {fileID: 0} 13 | m_SpritePackerMode: 0 14 | m_SpritePackerPaddingPower: 1 15 | m_EtcTextureCompressorBehavior: 1 16 | m_EtcTextureFastCompressor: 1 17 | m_EtcTextureNormalCompressor: 2 18 | m_EtcTextureBestCompressor: 4 19 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref 20 | m_ProjectGenerationRootNamespace: 21 | m_CollabEditorSettings: 22 | inProgressEnabled: 1 23 | m_EnableTextureStreamingInEditMode: 1 24 | m_EnableTextureStreamingInPlayMode: 1 25 | m_AsyncShaderCompilation: 1 26 | m_EnterPlayModeOptionsEnabled: 0 27 | m_EnterPlayModeOptions: 3 28 | m_ShowLightmapResolutionOverlay: 1 29 | m_UseLegacyProbeSampleCount: 0 30 | m_SerializeInlineMappingsOnOneLine: 1 -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!30 &1 4 | GraphicsSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 13 7 | m_Deferred: 8 | m_Mode: 1 9 | m_Shader: {fileID: 69, guid: 0000000000000000f000000000000000, type: 0} 10 | m_DeferredReflections: 11 | m_Mode: 1 12 | m_Shader: {fileID: 74, guid: 0000000000000000f000000000000000, type: 0} 13 | m_ScreenSpaceShadows: 14 | m_Mode: 1 15 | m_Shader: {fileID: 64, guid: 0000000000000000f000000000000000, type: 0} 16 | m_LegacyDeferred: 17 | m_Mode: 1 18 | m_Shader: {fileID: 63, guid: 0000000000000000f000000000000000, type: 0} 19 | m_DepthNormals: 20 | m_Mode: 1 21 | m_Shader: {fileID: 62, guid: 0000000000000000f000000000000000, type: 0} 22 | m_MotionVectors: 23 | m_Mode: 1 24 | m_Shader: {fileID: 75, guid: 0000000000000000f000000000000000, type: 0} 25 | m_LightHalo: 26 | m_Mode: 1 27 | m_Shader: {fileID: 105, guid: 0000000000000000f000000000000000, type: 0} 28 | m_LensFlare: 29 | m_Mode: 1 30 | m_Shader: {fileID: 102, guid: 0000000000000000f000000000000000, type: 0} 31 | m_AlwaysIncludedShaders: 32 | - {fileID: 7, guid: 0000000000000000f000000000000000, type: 0} 33 | - {fileID: 15104, guid: 0000000000000000f000000000000000, type: 0} 34 | - {fileID: 15105, guid: 0000000000000000f000000000000000, type: 0} 35 | - {fileID: 15106, guid: 0000000000000000f000000000000000, type: 0} 36 | - {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0} 37 | - {fileID: 10770, guid: 0000000000000000f000000000000000, type: 0} 38 | m_PreloadedShaders: [] 39 | m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000, 40 | type: 0} 41 | m_CustomRenderPipeline: {fileID: 0} 42 | m_TransparencySortMode: 0 43 | m_TransparencySortAxis: {x: 0, y: 0, z: 1} 44 | m_DefaultRenderingPath: 1 45 | m_DefaultMobileRenderingPath: 1 46 | m_TierSettings: [] 47 | m_LightmapStripping: 0 48 | m_FogStripping: 0 49 | m_InstancingStripping: 0 50 | m_LightmapKeepPlain: 1 51 | m_LightmapKeepDirCombined: 1 52 | m_LightmapKeepDynamicPlain: 1 53 | m_LightmapKeepDynamicDirCombined: 1 54 | m_LightmapKeepShadowMask: 1 55 | m_LightmapKeepSubtractive: 1 56 | m_FogKeepLinear: 1 57 | m_FogKeepExp: 1 58 | m_FogKeepExp2: 1 59 | m_AlbedoSwatchInfos: [] 60 | m_LightsUseLinearIntensity: 0 61 | m_LightsUseColorTemperature: 0 62 | m_LogWhenShaderIsCompiled: 0 63 | m_AllowEnlightenSupportForUpgradedProject: 0 64 | -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!13 &1 4 | InputManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Axes: 8 | - serializedVersion: 3 9 | m_Name: Horizontal 10 | descriptiveName: 11 | descriptiveNegativeName: 12 | negativeButton: left 13 | positiveButton: right 14 | altNegativeButton: a 15 | altPositiveButton: d 16 | gravity: 3 17 | dead: 0.001 18 | sensitivity: 3 19 | snap: 1 20 | invert: 0 21 | type: 0 22 | axis: 0 23 | joyNum: 0 24 | - serializedVersion: 3 25 | m_Name: Vertical 26 | descriptiveName: 27 | descriptiveNegativeName: 28 | negativeButton: down 29 | positiveButton: up 30 | altNegativeButton: s 31 | altPositiveButton: w 32 | gravity: 3 33 | dead: 0.001 34 | sensitivity: 3 35 | snap: 1 36 | invert: 0 37 | type: 0 38 | axis: 0 39 | joyNum: 0 40 | - serializedVersion: 3 41 | m_Name: Fire1 42 | descriptiveName: 43 | descriptiveNegativeName: 44 | negativeButton: 45 | positiveButton: left ctrl 46 | altNegativeButton: 47 | altPositiveButton: mouse 0 48 | gravity: 1000 49 | dead: 0.001 50 | sensitivity: 1000 51 | snap: 0 52 | invert: 0 53 | type: 0 54 | axis: 0 55 | joyNum: 0 56 | - serializedVersion: 3 57 | m_Name: Fire2 58 | descriptiveName: 59 | descriptiveNegativeName: 60 | negativeButton: 61 | positiveButton: left alt 62 | altNegativeButton: 63 | altPositiveButton: mouse 1 64 | gravity: 1000 65 | dead: 0.001 66 | sensitivity: 1000 67 | snap: 0 68 | invert: 0 69 | type: 0 70 | axis: 0 71 | joyNum: 0 72 | - serializedVersion: 3 73 | m_Name: Fire3 74 | descriptiveName: 75 | descriptiveNegativeName: 76 | negativeButton: 77 | positiveButton: left shift 78 | altNegativeButton: 79 | altPositiveButton: mouse 2 80 | gravity: 1000 81 | dead: 0.001 82 | sensitivity: 1000 83 | snap: 0 84 | invert: 0 85 | type: 0 86 | axis: 0 87 | joyNum: 0 88 | - serializedVersion: 3 89 | m_Name: Jump 90 | descriptiveName: 91 | descriptiveNegativeName: 92 | negativeButton: 93 | positiveButton: space 94 | altNegativeButton: 95 | altPositiveButton: 96 | gravity: 1000 97 | dead: 0.001 98 | sensitivity: 1000 99 | snap: 0 100 | invert: 0 101 | type: 0 102 | axis: 0 103 | joyNum: 0 104 | - serializedVersion: 3 105 | m_Name: Mouse X 106 | descriptiveName: 107 | descriptiveNegativeName: 108 | negativeButton: 109 | positiveButton: 110 | altNegativeButton: 111 | altPositiveButton: 112 | gravity: 0 113 | dead: 0 114 | sensitivity: 0.1 115 | snap: 0 116 | invert: 0 117 | type: 1 118 | axis: 0 119 | joyNum: 0 120 | - serializedVersion: 3 121 | m_Name: Mouse Y 122 | descriptiveName: 123 | descriptiveNegativeName: 124 | negativeButton: 125 | positiveButton: 126 | altNegativeButton: 127 | altPositiveButton: 128 | gravity: 0 129 | dead: 0 130 | sensitivity: 0.1 131 | snap: 0 132 | invert: 0 133 | type: 1 134 | axis: 1 135 | joyNum: 0 136 | - serializedVersion: 3 137 | m_Name: Mouse ScrollWheel 138 | descriptiveName: 139 | descriptiveNegativeName: 140 | negativeButton: 141 | positiveButton: 142 | altNegativeButton: 143 | altPositiveButton: 144 | gravity: 0 145 | dead: 0 146 | sensitivity: 0.1 147 | snap: 0 148 | invert: 0 149 | type: 1 150 | axis: 2 151 | joyNum: 0 152 | - serializedVersion: 3 153 | m_Name: Horizontal 154 | descriptiveName: 155 | descriptiveNegativeName: 156 | negativeButton: 157 | positiveButton: 158 | altNegativeButton: 159 | altPositiveButton: 160 | gravity: 0 161 | dead: 0.19 162 | sensitivity: 1 163 | snap: 0 164 | invert: 0 165 | type: 2 166 | axis: 0 167 | joyNum: 0 168 | - serializedVersion: 3 169 | m_Name: Vertical 170 | descriptiveName: 171 | descriptiveNegativeName: 172 | negativeButton: 173 | positiveButton: 174 | altNegativeButton: 175 | altPositiveButton: 176 | gravity: 0 177 | dead: 0.19 178 | sensitivity: 1 179 | snap: 0 180 | invert: 1 181 | type: 2 182 | axis: 1 183 | joyNum: 0 184 | - serializedVersion: 3 185 | m_Name: Fire1 186 | descriptiveName: 187 | descriptiveNegativeName: 188 | negativeButton: 189 | positiveButton: joystick button 0 190 | altNegativeButton: 191 | altPositiveButton: 192 | gravity: 1000 193 | dead: 0.001 194 | sensitivity: 1000 195 | snap: 0 196 | invert: 0 197 | type: 0 198 | axis: 0 199 | joyNum: 0 200 | - serializedVersion: 3 201 | m_Name: Fire2 202 | descriptiveName: 203 | descriptiveNegativeName: 204 | negativeButton: 205 | positiveButton: joystick button 1 206 | altNegativeButton: 207 | altPositiveButton: 208 | gravity: 1000 209 | dead: 0.001 210 | sensitivity: 1000 211 | snap: 0 212 | invert: 0 213 | type: 0 214 | axis: 0 215 | joyNum: 0 216 | - serializedVersion: 3 217 | m_Name: Fire3 218 | descriptiveName: 219 | descriptiveNegativeName: 220 | negativeButton: 221 | positiveButton: joystick button 2 222 | altNegativeButton: 223 | altPositiveButton: 224 | gravity: 1000 225 | dead: 0.001 226 | sensitivity: 1000 227 | snap: 0 228 | invert: 0 229 | type: 0 230 | axis: 0 231 | joyNum: 0 232 | - serializedVersion: 3 233 | m_Name: Jump 234 | descriptiveName: 235 | descriptiveNegativeName: 236 | negativeButton: 237 | positiveButton: joystick button 3 238 | altNegativeButton: 239 | altPositiveButton: 240 | gravity: 1000 241 | dead: 0.001 242 | sensitivity: 1000 243 | snap: 0 244 | invert: 0 245 | type: 0 246 | axis: 0 247 | joyNum: 0 248 | - serializedVersion: 3 249 | m_Name: Submit 250 | descriptiveName: 251 | descriptiveNegativeName: 252 | negativeButton: 253 | positiveButton: return 254 | altNegativeButton: 255 | altPositiveButton: joystick button 0 256 | gravity: 1000 257 | dead: 0.001 258 | sensitivity: 1000 259 | snap: 0 260 | invert: 0 261 | type: 0 262 | axis: 0 263 | joyNum: 0 264 | - serializedVersion: 3 265 | m_Name: Submit 266 | descriptiveName: 267 | descriptiveNegativeName: 268 | negativeButton: 269 | positiveButton: enter 270 | altNegativeButton: 271 | altPositiveButton: space 272 | gravity: 1000 273 | dead: 0.001 274 | sensitivity: 1000 275 | snap: 0 276 | invert: 0 277 | type: 0 278 | axis: 0 279 | joyNum: 0 280 | - serializedVersion: 3 281 | m_Name: Cancel 282 | descriptiveName: 283 | descriptiveNegativeName: 284 | negativeButton: 285 | positiveButton: escape 286 | altNegativeButton: 287 | altPositiveButton: joystick button 1 288 | gravity: 1000 289 | dead: 0.001 290 | sensitivity: 1000 291 | snap: 0 292 | invert: 0 293 | type: 0 294 | axis: 0 295 | joyNum: 0 296 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreviewPackages: 1 16 | m_EnablePackageDependencies: 0 17 | m_AdvancedSettingsExpanded: 1 18 | m_ScopedRegistriesSettingsExpanded: 1 19 | oneTimeWarningShown: 1 20 | m_Registries: 21 | - m_Id: main 22 | m_Name: 23 | m_Url: https://packages.unity.com 24 | m_Scopes: [] 25 | m_IsDefault: 1 26 | m_Capabilities: 7 27 | m_UserSelectedRegistryName: 28 | m_UserAddingNewScopedRegistry: 0 29 | m_RegistryInfoDraft: 30 | m_ErrorMessage: 31 | m_Original: 32 | m_Id: 33 | m_Name: 34 | m_Url: 35 | m_Scopes: [] 36 | m_IsDefault: 0 37 | m_Capabilities: 0 38 | m_Modified: 0 39 | m_Name: 40 | m_Url: 41 | m_Scopes: 42 | - 43 | m_SelectedScopeIndex: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!19 &1 4 | Physics2DSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_Gravity: {x: 0, y: -9.81} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_VelocityIterations: 8 10 | m_PositionIterations: 3 11 | m_VelocityThreshold: 1 12 | m_MaxLinearCorrection: 0.2 13 | m_MaxAngularCorrection: 8 14 | m_MaxTranslationSpeed: 100 15 | m_MaxRotationSpeed: 360 16 | m_BaumgarteScale: 0.2 17 | m_BaumgarteTimeOfImpactScale: 0.75 18 | m_TimeToSleep: 0.5 19 | m_LinearSleepTolerance: 0.01 20 | m_AngularSleepTolerance: 2 21 | m_DefaultContactOffset: 0.01 22 | m_JobOptions: 23 | serializedVersion: 2 24 | useMultithreading: 0 25 | useConsistencySorting: 0 26 | m_InterpolationPosesPerJob: 100 27 | m_NewContactsPerJob: 30 28 | m_CollideContactsPerJob: 100 29 | m_ClearFlagsPerJob: 200 30 | m_ClearBodyForcesPerJob: 200 31 | m_SyncDiscreteFixturesPerJob: 50 32 | m_SyncContinuousFixturesPerJob: 50 33 | m_FindNearestContactsPerJob: 100 34 | m_UpdateTriggerContactsPerJob: 100 35 | m_IslandSolverCostThreshold: 100 36 | m_IslandSolverBodyCostScale: 1 37 | m_IslandSolverContactCostScale: 10 38 | m_IslandSolverJointCostScale: 10 39 | m_IslandSolverBodiesPerJob: 50 40 | m_IslandSolverContactsPerJob: 50 41 | m_AutoSimulation: 1 42 | m_QueriesHitTriggers: 1 43 | m_QueriesStartInColliders: 1 44 | m_CallbacksOnDisable: 1 45 | m_ReuseCollisionCallbacks: 1 46 | m_AutoSyncTransforms: 0 47 | m_AlwaysShowColliders: 0 48 | m_ShowColliderSleep: 1 49 | m_ShowColliderContacts: 0 50 | m_ShowColliderAABB: 0 51 | m_ContactArrowScale: 0.2 52 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 53 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 54 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 55 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 56 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 57 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_DefaultPresets: {} 8 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!129 &1 4 | PlayerSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 22 7 | productGUID: 4b13dbe66539a1e439c89fabf2e99968 8 | AndroidProfiler: 0 9 | AndroidFilterTouchesWhenObscured: 0 10 | AndroidEnableSustainedPerformanceMode: 0 11 | defaultScreenOrientation: 4 12 | targetDevice: 2 13 | useOnDemandResources: 0 14 | accelerometerFrequency: 60 15 | companyName: DefaultCompany 16 | productName: PathTools2 17 | defaultCursor: {fileID: 0} 18 | cursorHotspot: {x: 0, y: 0} 19 | m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} 20 | m_ShowUnitySplashScreen: 1 21 | m_ShowUnitySplashLogo: 1 22 | m_SplashScreenOverlayOpacity: 1 23 | m_SplashScreenAnimation: 1 24 | m_SplashScreenLogoStyle: 1 25 | m_SplashScreenDrawMode: 0 26 | m_SplashScreenBackgroundAnimationZoom: 1 27 | m_SplashScreenLogoAnimationZoom: 1 28 | m_SplashScreenBackgroundLandscapeAspect: 1 29 | m_SplashScreenBackgroundPortraitAspect: 1 30 | m_SplashScreenBackgroundLandscapeUvs: 31 | serializedVersion: 2 32 | x: 0 33 | y: 0 34 | width: 1 35 | height: 1 36 | m_SplashScreenBackgroundPortraitUvs: 37 | serializedVersion: 2 38 | x: 0 39 | y: 0 40 | width: 1 41 | height: 1 42 | m_SplashScreenLogos: [] 43 | m_VirtualRealitySplashScreen: {fileID: 0} 44 | m_HolographicTrackingLossScreen: {fileID: 0} 45 | defaultScreenWidth: 1024 46 | defaultScreenHeight: 768 47 | defaultScreenWidthWeb: 960 48 | defaultScreenHeightWeb: 600 49 | m_StereoRenderingPath: 0 50 | m_ActiveColorSpace: 0 51 | m_MTRendering: 1 52 | mipStripping: 0 53 | numberOfMipsStripped: 0 54 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 55 | iosShowActivityIndicatorOnLoading: -1 56 | androidShowActivityIndicatorOnLoading: -1 57 | iosUseCustomAppBackgroundBehavior: 0 58 | iosAllowHTTPDownload: 1 59 | allowedAutorotateToPortrait: 1 60 | allowedAutorotateToPortraitUpsideDown: 1 61 | allowedAutorotateToLandscapeRight: 1 62 | allowedAutorotateToLandscapeLeft: 1 63 | useOSAutorotation: 1 64 | use32BitDisplayBuffer: 1 65 | preserveFramebufferAlpha: 0 66 | disableDepthAndStencilBuffers: 0 67 | androidStartInFullscreen: 1 68 | androidRenderOutsideSafeArea: 1 69 | androidUseSwappy: 1 70 | androidBlitType: 0 71 | defaultIsNativeResolution: 1 72 | macRetinaSupport: 1 73 | runInBackground: 1 74 | captureSingleScreen: 0 75 | muteOtherAudioSources: 0 76 | Prepare IOS For Recording: 0 77 | Force IOS Speakers When Recording: 0 78 | deferSystemGesturesMode: 0 79 | hideHomeButton: 0 80 | submitAnalytics: 1 81 | usePlayerLog: 1 82 | bakeCollisionMeshes: 0 83 | forceSingleInstance: 0 84 | useFlipModelSwapchain: 1 85 | resizableWindow: 0 86 | useMacAppStoreValidation: 0 87 | macAppStoreCategory: public.app-category.games 88 | gpuSkinning: 1 89 | xboxPIXTextureCapture: 0 90 | xboxEnableAvatar: 0 91 | xboxEnableKinect: 0 92 | xboxEnableKinectAutoTracking: 0 93 | xboxEnableFitness: 0 94 | visibleInBackground: 1 95 | allowFullscreenSwitch: 1 96 | fullscreenMode: 1 97 | xboxSpeechDB: 0 98 | xboxEnableHeadOrientation: 0 99 | xboxEnableGuest: 0 100 | xboxEnablePIXSampling: 0 101 | metalFramebufferOnly: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOneEnableTypeOptimization: 0 109 | xboxOnePresentImmediateThreshold: 0 110 | switchQueueCommandMemory: 0 111 | switchQueueControlMemory: 16384 112 | switchQueueComputeMemory: 262144 113 | switchNVNShaderPoolsGranularity: 33554432 114 | switchNVNDefaultPoolsGranularity: 16777216 115 | switchNVNOtherPoolsGranularity: 16777216 116 | switchNVNMaxPublicTextureIDCount: 0 117 | switchNVNMaxPublicSamplerIDCount: 0 118 | stadiaPresentMode: 0 119 | stadiaTargetFramerate: 0 120 | vulkanNumSwapchainBuffers: 3 121 | vulkanEnableSetSRGBWrite: 0 122 | vulkanEnablePreTransform: 0 123 | vulkanEnableLateAcquireNextImage: 0 124 | m_SupportedAspectRatios: 125 | 4:3: 1 126 | 5:4: 1 127 | 16:10: 1 128 | 16:9: 1 129 | Others: 1 130 | bundleVersion: 0.1 131 | preloadedAssets: [] 132 | metroInputSource: 0 133 | wsaTransparentSwapchain: 0 134 | m_HolographicPauseOnTrackingLoss: 1 135 | xboxOneDisableKinectGpuReservation: 1 136 | xboxOneEnable7thCore: 1 137 | vrSettings: 138 | enable360StereoCapture: 0 139 | isWsaHolographicRemotingEnabled: 0 140 | enableFrameTimingStats: 0 141 | useHDRDisplay: 0 142 | D3DHDRBitDepth: 0 143 | m_ColorGamuts: 00000000 144 | targetPixelDensity: 30 145 | resolutionScalingMode: 0 146 | androidSupportedAspectRatio: 1 147 | androidMaxAspectRatio: 2.1 148 | applicationIdentifier: {} 149 | buildNumber: 150 | Standalone: 0 151 | iPhone: 0 152 | tvOS: 0 153 | overrideDefaultApplicationIdentifier: 0 154 | AndroidBundleVersionCode: 1 155 | AndroidMinSdkVersion: 19 156 | AndroidTargetSdkVersion: 0 157 | AndroidPreferredInstallLocation: 1 158 | aotOptions: 159 | stripEngineCode: 1 160 | iPhoneStrippingLevel: 0 161 | iPhoneScriptCallOptimization: 0 162 | ForceInternetPermission: 0 163 | ForceSDCardPermission: 0 164 | CreateWallpaper: 0 165 | APKExpansionFiles: 0 166 | keepLoadedShadersAlive: 0 167 | StripUnusedMeshComponents: 1 168 | VertexChannelCompressionMask: 4054 169 | iPhoneSdkVersion: 988 170 | iOSTargetOSVersionString: 11.0 171 | tvOSSdkVersion: 0 172 | tvOSRequireExtendedGameController: 0 173 | tvOSTargetOSVersionString: 11.0 174 | uIPrerenderedIcon: 0 175 | uIRequiresPersistentWiFi: 0 176 | uIRequiresFullScreen: 1 177 | uIStatusBarHidden: 1 178 | uIExitOnSuspend: 0 179 | uIStatusBarStyle: 0 180 | appleTVSplashScreen: {fileID: 0} 181 | appleTVSplashScreen2x: {fileID: 0} 182 | tvOSSmallIconLayers: [] 183 | tvOSSmallIconLayers2x: [] 184 | tvOSLargeIconLayers: [] 185 | tvOSLargeIconLayers2x: [] 186 | tvOSTopShelfImageLayers: [] 187 | tvOSTopShelfImageLayers2x: [] 188 | tvOSTopShelfImageWideLayers: [] 189 | tvOSTopShelfImageWideLayers2x: [] 190 | iOSLaunchScreenType: 0 191 | iOSLaunchScreenPortrait: {fileID: 0} 192 | iOSLaunchScreenLandscape: {fileID: 0} 193 | iOSLaunchScreenBackgroundColor: 194 | serializedVersion: 2 195 | rgba: 0 196 | iOSLaunchScreenFillPct: 100 197 | iOSLaunchScreenSize: 100 198 | iOSLaunchScreenCustomXibPath: 199 | iOSLaunchScreeniPadType: 0 200 | iOSLaunchScreeniPadImage: {fileID: 0} 201 | iOSLaunchScreeniPadBackgroundColor: 202 | serializedVersion: 2 203 | rgba: 0 204 | iOSLaunchScreeniPadFillPct: 100 205 | iOSLaunchScreeniPadSize: 100 206 | iOSLaunchScreeniPadCustomXibPath: 207 | iOSLaunchScreenCustomStoryboardPath: 208 | iOSLaunchScreeniPadCustomStoryboardPath: 209 | iOSDeviceRequirements: [] 210 | iOSURLSchemes: [] 211 | iOSBackgroundModes: 0 212 | iOSMetalForceHardShadows: 0 213 | metalEditorSupport: 1 214 | metalAPIValidation: 1 215 | iOSRenderExtraFrameOnPause: 0 216 | iosCopyPluginsCodeInsteadOfSymlink: 0 217 | appleDeveloperTeamID: 218 | iOSManualSigningProvisioningProfileID: 219 | tvOSManualSigningProvisioningProfileID: 220 | iOSManualSigningProvisioningProfileType: 0 221 | tvOSManualSigningProvisioningProfileType: 0 222 | appleEnableAutomaticSigning: 0 223 | iOSRequireARKit: 0 224 | iOSAutomaticallyDetectAndAddCapabilities: 1 225 | appleEnableProMotion: 0 226 | shaderPrecisionModel: 0 227 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 228 | templatePackageId: com.unity.template.3d@5.0.4 229 | templateDefaultScene: Assets/Scenes/SampleScene.unity 230 | useCustomMainManifest: 0 231 | useCustomLauncherManifest: 0 232 | useCustomMainGradleTemplate: 0 233 | useCustomLauncherGradleManifest: 0 234 | useCustomBaseGradleTemplate: 0 235 | useCustomGradlePropertiesTemplate: 0 236 | useCustomProguardFile: 0 237 | AndroidTargetArchitectures: 1 238 | AndroidSplashScreenScale: 0 239 | androidSplashScreen: {fileID: 0} 240 | AndroidKeystoreName: 241 | AndroidKeyaliasName: 242 | AndroidBuildApkPerCpuArchitecture: 0 243 | AndroidTVCompatibility: 0 244 | AndroidIsGame: 1 245 | AndroidEnableTango: 0 246 | androidEnableBanner: 1 247 | androidUseLowAccuracyLocation: 0 248 | androidUseCustomKeystore: 0 249 | m_AndroidBanners: 250 | - width: 320 251 | height: 180 252 | banner: {fileID: 0} 253 | androidGamepadSupportLevel: 0 254 | AndroidMinifyWithR8: 0 255 | AndroidMinifyRelease: 0 256 | AndroidMinifyDebug: 0 257 | AndroidValidateAppBundleSize: 1 258 | AndroidAppBundleSizeToValidate: 150 259 | m_BuildTargetIcons: [] 260 | m_BuildTargetPlatformIcons: [] 261 | m_BuildTargetBatching: 262 | - m_BuildTarget: Standalone 263 | m_StaticBatching: 1 264 | m_DynamicBatching: 0 265 | - m_BuildTarget: tvOS 266 | m_StaticBatching: 1 267 | m_DynamicBatching: 0 268 | - m_BuildTarget: Android 269 | m_StaticBatching: 1 270 | m_DynamicBatching: 0 271 | - m_BuildTarget: iPhone 272 | m_StaticBatching: 1 273 | m_DynamicBatching: 0 274 | - m_BuildTarget: WebGL 275 | m_StaticBatching: 0 276 | m_DynamicBatching: 0 277 | m_BuildTargetGraphicsJobs: 278 | - m_BuildTarget: MacStandaloneSupport 279 | m_GraphicsJobs: 0 280 | - m_BuildTarget: Switch 281 | m_GraphicsJobs: 1 282 | - m_BuildTarget: MetroSupport 283 | m_GraphicsJobs: 1 284 | - m_BuildTarget: AppleTVSupport 285 | m_GraphicsJobs: 0 286 | - m_BuildTarget: BJMSupport 287 | m_GraphicsJobs: 1 288 | - m_BuildTarget: LinuxStandaloneSupport 289 | m_GraphicsJobs: 1 290 | - m_BuildTarget: PS4Player 291 | m_GraphicsJobs: 1 292 | - m_BuildTarget: iOSSupport 293 | m_GraphicsJobs: 0 294 | - m_BuildTarget: WindowsStandaloneSupport 295 | m_GraphicsJobs: 1 296 | - m_BuildTarget: XboxOnePlayer 297 | m_GraphicsJobs: 1 298 | - m_BuildTarget: LuminSupport 299 | m_GraphicsJobs: 0 300 | - m_BuildTarget: AndroidPlayer 301 | m_GraphicsJobs: 0 302 | - m_BuildTarget: WebGLSupport 303 | m_GraphicsJobs: 0 304 | m_BuildTargetGraphicsJobMode: 305 | - m_BuildTarget: PS4Player 306 | m_GraphicsJobMode: 0 307 | - m_BuildTarget: XboxOnePlayer 308 | m_GraphicsJobMode: 0 309 | m_BuildTargetGraphicsAPIs: 310 | - m_BuildTarget: AndroidPlayer 311 | m_APIs: 150000000b000000 312 | m_Automatic: 0 313 | - m_BuildTarget: iOSSupport 314 | m_APIs: 10000000 315 | m_Automatic: 1 316 | - m_BuildTarget: AppleTVSupport 317 | m_APIs: 10000000 318 | m_Automatic: 1 319 | - m_BuildTarget: WebGLSupport 320 | m_APIs: 0b000000 321 | m_Automatic: 1 322 | m_BuildTargetVRSettings: 323 | - m_BuildTarget: Standalone 324 | m_Enabled: 0 325 | m_Devices: 326 | - Oculus 327 | - OpenVR 328 | openGLRequireES31: 0 329 | openGLRequireES31AEP: 0 330 | openGLRequireES32: 0 331 | m_TemplateCustomTags: {} 332 | mobileMTRendering: 333 | Android: 1 334 | iPhone: 1 335 | tvOS: 1 336 | m_BuildTargetGroupLightmapEncodingQuality: [] 337 | m_BuildTargetGroupLightmapSettings: [] 338 | m_BuildTargetNormalMapEncoding: [] 339 | playModeTestRunnerEnabled: 0 340 | runPlayModeTestAsEditModeTest: 0 341 | actionOnDotNetUnhandledException: 1 342 | enableInternalProfiler: 0 343 | logObjCUncaughtExceptions: 1 344 | enableCrashReportAPI: 0 345 | cameraUsageDescription: 346 | locationUsageDescription: 347 | microphoneUsageDescription: 348 | switchNMETAOverride: 349 | switchNetLibKey: 350 | switchSocketMemoryPoolSize: 6144 351 | switchSocketAllocatorPoolSize: 128 352 | switchSocketConcurrencyLimit: 14 353 | switchScreenResolutionBehavior: 2 354 | switchUseCPUProfiler: 0 355 | switchUseGOLDLinker: 0 356 | switchApplicationID: 0x01004b9000490000 357 | switchNSODependencies: 358 | switchTitleNames_0: 359 | switchTitleNames_1: 360 | switchTitleNames_2: 361 | switchTitleNames_3: 362 | switchTitleNames_4: 363 | switchTitleNames_5: 364 | switchTitleNames_6: 365 | switchTitleNames_7: 366 | switchTitleNames_8: 367 | switchTitleNames_9: 368 | switchTitleNames_10: 369 | switchTitleNames_11: 370 | switchTitleNames_12: 371 | switchTitleNames_13: 372 | switchTitleNames_14: 373 | switchTitleNames_15: 374 | switchPublisherNames_0: 375 | switchPublisherNames_1: 376 | switchPublisherNames_2: 377 | switchPublisherNames_3: 378 | switchPublisherNames_4: 379 | switchPublisherNames_5: 380 | switchPublisherNames_6: 381 | switchPublisherNames_7: 382 | switchPublisherNames_8: 383 | switchPublisherNames_9: 384 | switchPublisherNames_10: 385 | switchPublisherNames_11: 386 | switchPublisherNames_12: 387 | switchPublisherNames_13: 388 | switchPublisherNames_14: 389 | switchPublisherNames_15: 390 | switchIcons_0: {fileID: 0} 391 | switchIcons_1: {fileID: 0} 392 | switchIcons_2: {fileID: 0} 393 | switchIcons_3: {fileID: 0} 394 | switchIcons_4: {fileID: 0} 395 | switchIcons_5: {fileID: 0} 396 | switchIcons_6: {fileID: 0} 397 | switchIcons_7: {fileID: 0} 398 | switchIcons_8: {fileID: 0} 399 | switchIcons_9: {fileID: 0} 400 | switchIcons_10: {fileID: 0} 401 | switchIcons_11: {fileID: 0} 402 | switchIcons_12: {fileID: 0} 403 | switchIcons_13: {fileID: 0} 404 | switchIcons_14: {fileID: 0} 405 | switchIcons_15: {fileID: 0} 406 | switchSmallIcons_0: {fileID: 0} 407 | switchSmallIcons_1: {fileID: 0} 408 | switchSmallIcons_2: {fileID: 0} 409 | switchSmallIcons_3: {fileID: 0} 410 | switchSmallIcons_4: {fileID: 0} 411 | switchSmallIcons_5: {fileID: 0} 412 | switchSmallIcons_6: {fileID: 0} 413 | switchSmallIcons_7: {fileID: 0} 414 | switchSmallIcons_8: {fileID: 0} 415 | switchSmallIcons_9: {fileID: 0} 416 | switchSmallIcons_10: {fileID: 0} 417 | switchSmallIcons_11: {fileID: 0} 418 | switchSmallIcons_12: {fileID: 0} 419 | switchSmallIcons_13: {fileID: 0} 420 | switchSmallIcons_14: {fileID: 0} 421 | switchSmallIcons_15: {fileID: 0} 422 | switchManualHTML: 423 | switchAccessibleURLs: 424 | switchLegalInformation: 425 | switchMainThreadStackSize: 1048576 426 | switchPresenceGroupId: 427 | switchLogoHandling: 0 428 | switchReleaseVersion: 0 429 | switchDisplayVersion: 1.0.0 430 | switchStartupUserAccount: 0 431 | switchTouchScreenUsage: 0 432 | switchSupportedLanguagesMask: 0 433 | switchLogoType: 0 434 | switchApplicationErrorCodeCategory: 435 | switchUserAccountSaveDataSize: 0 436 | switchUserAccountSaveDataJournalSize: 0 437 | switchApplicationAttribute: 0 438 | switchCardSpecSize: -1 439 | switchCardSpecClock: -1 440 | switchRatingsMask: 0 441 | switchRatingsInt_0: 0 442 | switchRatingsInt_1: 0 443 | switchRatingsInt_2: 0 444 | switchRatingsInt_3: 0 445 | switchRatingsInt_4: 0 446 | switchRatingsInt_5: 0 447 | switchRatingsInt_6: 0 448 | switchRatingsInt_7: 0 449 | switchRatingsInt_8: 0 450 | switchRatingsInt_9: 0 451 | switchRatingsInt_10: 0 452 | switchRatingsInt_11: 0 453 | switchRatingsInt_12: 0 454 | switchLocalCommunicationIds_0: 455 | switchLocalCommunicationIds_1: 456 | switchLocalCommunicationIds_2: 457 | switchLocalCommunicationIds_3: 458 | switchLocalCommunicationIds_4: 459 | switchLocalCommunicationIds_5: 460 | switchLocalCommunicationIds_6: 461 | switchLocalCommunicationIds_7: 462 | switchParentalControl: 0 463 | switchAllowsScreenshot: 1 464 | switchAllowsVideoCapturing: 1 465 | switchAllowsRuntimeAddOnContentInstall: 0 466 | switchDataLossConfirmation: 0 467 | switchUserAccountLockEnabled: 0 468 | switchSystemResourceMemory: 16777216 469 | switchSupportedNpadStyles: 22 470 | switchNativeFsCacheSize: 32 471 | switchIsHoldTypeHorizontal: 0 472 | switchSupportedNpadCount: 8 473 | switchSocketConfigEnabled: 0 474 | switchTcpInitialSendBufferSize: 32 475 | switchTcpInitialReceiveBufferSize: 64 476 | switchTcpAutoSendBufferSizeMax: 256 477 | switchTcpAutoReceiveBufferSizeMax: 256 478 | switchUdpSendBufferSize: 9 479 | switchUdpReceiveBufferSize: 42 480 | switchSocketBufferEfficiency: 4 481 | switchSocketInitializeEnabled: 1 482 | switchNetworkInterfaceManagerInitializeEnabled: 1 483 | switchPlayerConnectionEnabled: 1 484 | switchUseNewStyleFilepaths: 0 485 | switchUseMicroSleepForYield: 1 486 | switchMicroSleepForYieldTime: 25 487 | ps4NPAgeRating: 12 488 | ps4NPTitleSecret: 489 | ps4NPTrophyPackPath: 490 | ps4ParentalLevel: 11 491 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 492 | ps4Category: 0 493 | ps4MasterVersion: 01.00 494 | ps4AppVersion: 01.00 495 | ps4AppType: 0 496 | ps4ParamSfxPath: 497 | ps4VideoOutPixelFormat: 0 498 | ps4VideoOutInitialWidth: 1920 499 | ps4VideoOutBaseModeInitialWidth: 1920 500 | ps4VideoOutReprojectionRate: 60 501 | ps4PronunciationXMLPath: 502 | ps4PronunciationSIGPath: 503 | ps4BackgroundImagePath: 504 | ps4StartupImagePath: 505 | ps4StartupImagesFolder: 506 | ps4IconImagesFolder: 507 | ps4SaveDataImagePath: 508 | ps4SdkOverride: 509 | ps4BGMPath: 510 | ps4ShareFilePath: 511 | ps4ShareOverlayImagePath: 512 | ps4PrivacyGuardImagePath: 513 | ps4ExtraSceSysFile: 514 | ps4NPtitleDatPath: 515 | ps4RemotePlayKeyAssignment: -1 516 | ps4RemotePlayKeyMappingDir: 517 | ps4PlayTogetherPlayerCount: 0 518 | ps4EnterButtonAssignment: 1 519 | ps4ApplicationParam1: 0 520 | ps4ApplicationParam2: 0 521 | ps4ApplicationParam3: 0 522 | ps4ApplicationParam4: 0 523 | ps4DownloadDataSize: 0 524 | ps4GarlicHeapSize: 2048 525 | ps4ProGarlicHeapSize: 2560 526 | playerPrefsMaxSize: 32768 527 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 528 | ps4pnSessions: 1 529 | ps4pnPresence: 1 530 | ps4pnFriends: 1 531 | ps4pnGameCustomData: 1 532 | playerPrefsSupport: 0 533 | enableApplicationExit: 0 534 | resetTempFolder: 1 535 | restrictedAudioUsageRights: 0 536 | ps4UseResolutionFallback: 0 537 | ps4ReprojectionSupport: 0 538 | ps4UseAudio3dBackend: 0 539 | ps4UseLowGarlicFragmentationMode: 1 540 | ps4SocialScreenEnabled: 0 541 | ps4ScriptOptimizationLevel: 0 542 | ps4Audio3dVirtualSpeakerCount: 14 543 | ps4attribCpuUsage: 0 544 | ps4PatchPkgPath: 545 | ps4PatchLatestPkgPath: 546 | ps4PatchChangeinfoPath: 547 | ps4PatchDayOne: 0 548 | ps4attribUserManagement: 0 549 | ps4attribMoveSupport: 0 550 | ps4attrib3DSupport: 0 551 | ps4attribShareSupport: 0 552 | ps4attribExclusiveVR: 0 553 | ps4disableAutoHideSplash: 0 554 | ps4videoRecordingFeaturesUsed: 0 555 | ps4contentSearchFeaturesUsed: 0 556 | ps4CompatibilityPS5: 0 557 | ps4AllowPS5Detection: 0 558 | ps4GPU800MHz: 1 559 | ps4attribEyeToEyeDistanceSettingVR: 0 560 | ps4IncludedModules: [] 561 | ps4attribVROutputEnabled: 0 562 | monoEnv: 563 | splashScreenBackgroundSourceLandscape: {fileID: 0} 564 | splashScreenBackgroundSourcePortrait: {fileID: 0} 565 | blurSplashScreenBackground: 1 566 | spritePackerPolicy: 567 | webGLMemorySize: 16 568 | webGLExceptionSupport: 1 569 | webGLNameFilesAsHashes: 0 570 | webGLDataCaching: 1 571 | webGLDebugSymbols: 0 572 | webGLEmscriptenArgs: 573 | webGLModulesDirectory: 574 | webGLTemplate: APPLICATION:Default 575 | webGLAnalyzeBuildSize: 0 576 | webGLUseEmbeddedResources: 0 577 | webGLCompressionFormat: 1 578 | webGLWasmArithmeticExceptions: 0 579 | webGLLinkerTarget: 1 580 | webGLThreadsSupport: 0 581 | webGLDecompressionFallback: 0 582 | scriptingDefineSymbols: 583 | 1: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER;PLAYMAKER_TMPRO 584 | 4: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 585 | 7: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 586 | 13: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 587 | 14: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 588 | 19: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 589 | 21: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 590 | 25: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 591 | 27: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 592 | 28: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 593 | 29: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 594 | 30: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 595 | 32: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 596 | 33: PLAYMAKER;PLAYMAKER_1_9;PLAYMAKER_1_9_1;PLAYMAKER_1_8_OR_NEWER;PLAYMAKER_1_8_5_OR_NEWER;PLAYMAKER_1_9_OR_NEWER 597 | additionalCompilerArguments: {} 598 | platformArchitecture: {} 599 | scriptingBackend: {} 600 | il2cppCompilerConfiguration: {} 601 | managedStrippingLevel: {} 602 | incrementalIl2cppBuild: {} 603 | suppressCommonWarnings: 1 604 | allowUnsafeCode: 0 605 | useDeterministicCompilation: 1 606 | useReferenceAssemblies: 1 607 | enableRoslynAnalyzers: 1 608 | additionalIl2CppArgs: 609 | scriptingRuntimeVersion: 1 610 | gcIncremental: 1 611 | assemblyVersionValidation: 1 612 | gcWBarrierValidation: 0 613 | apiCompatibilityLevelPerPlatform: {} 614 | m_RenderingPath: 1 615 | m_MobileRenderingPath: 1 616 | metroPackageName: Template_3D 617 | metroPackageVersion: 618 | metroCertificatePath: 619 | metroCertificatePassword: 620 | metroCertificateSubject: 621 | metroCertificateIssuer: 622 | metroCertificateNotAfter: 0000000000000000 623 | metroApplicationDescription: Template_3D 624 | wsaImages: {} 625 | metroTileShortName: 626 | metroTileShowName: 0 627 | metroMediumTileShowName: 0 628 | metroLargeTileShowName: 0 629 | metroWideTileShowName: 0 630 | metroSupportStreamingInstall: 0 631 | metroLastRequiredScene: 0 632 | metroDefaultTileSize: 1 633 | metroTileForegroundText: 2 634 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 635 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, a: 1} 636 | metroSplashScreenUseBackgroundColor: 0 637 | platformCapabilities: {} 638 | metroTargetDeviceFamilies: {} 639 | metroFTAName: 640 | metroFTAFileTypes: [] 641 | metroProtocolName: 642 | XboxOneProductId: 643 | XboxOneUpdateKey: 644 | XboxOneSandboxId: 645 | XboxOneContentId: 646 | XboxOneTitleId: 647 | XboxOneSCId: 648 | XboxOneGameOsOverridePath: 649 | XboxOnePackagingOverridePath: 650 | XboxOneAppManifestOverridePath: 651 | XboxOneVersion: 1.0.0.0 652 | XboxOnePackageEncryption: 0 653 | XboxOnePackageUpdateGranularity: 2 654 | XboxOneDescription: 655 | XboxOneLanguage: 656 | - enus 657 | XboxOneCapability: [] 658 | XboxOneGameRating: {} 659 | XboxOneIsContentPackage: 0 660 | XboxOneEnhancedXboxCompatibilityMode: 0 661 | XboxOneEnableGPUVariability: 1 662 | XboxOneSockets: {} 663 | XboxOneSplashScreen: {fileID: 0} 664 | XboxOneAllowedProductIds: [] 665 | XboxOnePersistentLocalStorageSize: 0 666 | XboxOneXTitleMemory: 8 667 | XboxOneOverrideIdentityName: 668 | XboxOneOverrideIdentityPublisher: 669 | vrEditorSettings: {} 670 | cloudServicesEnabled: 671 | UNet: 1 672 | luminIcon: 673 | m_Name: 674 | m_ModelFolderPath: 675 | m_PortalFolderPath: 676 | luminCert: 677 | m_CertPath: 678 | m_SignPackage: 1 679 | luminIsChannelApp: 0 680 | luminVersion: 681 | m_VersionCode: 1 682 | m_VersionName: 683 | apiCompatibilityLevel: 6 684 | activeInputHandler: 0 685 | cloudProjectId: 686 | framebufferDepthMemorylessMode: 0 687 | qualitySettingsNames: [] 688 | projectName: 689 | organizationId: 690 | cloudEnabled: 0 691 | legacyClampBlendShapeWeights: 0 692 | virtualTexturingSupportEnabled: 0 693 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2020.3.15f2 2 | m_EditorVersionWithRevision: 2020.3.15f2 (6cf78cb77498) 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!47 &1 4 | QualitySettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 5 7 | m_CurrentQuality: 5 8 | m_QualitySettings: 9 | - serializedVersion: 2 10 | name: Very Low 11 | pixelLightCount: 0 12 | shadows: 0 13 | shadowResolution: 0 14 | shadowProjection: 1 15 | shadowCascades: 1 16 | shadowDistance: 15 17 | shadowNearPlaneOffset: 3 18 | shadowCascade2Split: 0.33333334 19 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 20 | shadowmaskMode: 0 21 | blendWeights: 1 22 | textureQuality: 1 23 | anisotropicTextures: 0 24 | antiAliasing: 0 25 | softParticles: 0 26 | softVegetation: 0 27 | realtimeReflectionProbes: 0 28 | billboardsFaceCameraPosition: 0 29 | vSyncCount: 0 30 | lodBias: 0.3 31 | maximumLODLevel: 0 32 | streamingMipmapsActive: 0 33 | streamingMipmapsAddAllCameras: 1 34 | streamingMipmapsMemoryBudget: 512 35 | streamingMipmapsRenderersPerFrame: 512 36 | streamingMipmapsMaxLevelReduction: 2 37 | streamingMipmapsMaxFileIORequests: 1024 38 | particleRaycastBudget: 4 39 | asyncUploadTimeSlice: 2 40 | asyncUploadBufferSize: 16 41 | asyncUploadPersistentBuffer: 1 42 | resolutionScalingFixedDPIFactor: 1 43 | excludedTargetPlatforms: [] 44 | - serializedVersion: 2 45 | name: Low 46 | pixelLightCount: 0 47 | shadows: 0 48 | shadowResolution: 0 49 | shadowProjection: 1 50 | shadowCascades: 1 51 | shadowDistance: 20 52 | shadowNearPlaneOffset: 3 53 | shadowCascade2Split: 0.33333334 54 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 55 | shadowmaskMode: 0 56 | blendWeights: 2 57 | textureQuality: 0 58 | anisotropicTextures: 0 59 | antiAliasing: 0 60 | softParticles: 0 61 | softVegetation: 0 62 | realtimeReflectionProbes: 0 63 | billboardsFaceCameraPosition: 0 64 | vSyncCount: 0 65 | lodBias: 0.4 66 | maximumLODLevel: 0 67 | streamingMipmapsActive: 0 68 | streamingMipmapsAddAllCameras: 1 69 | streamingMipmapsMemoryBudget: 512 70 | streamingMipmapsRenderersPerFrame: 512 71 | streamingMipmapsMaxLevelReduction: 2 72 | streamingMipmapsMaxFileIORequests: 1024 73 | particleRaycastBudget: 16 74 | asyncUploadTimeSlice: 2 75 | asyncUploadBufferSize: 16 76 | asyncUploadPersistentBuffer: 1 77 | resolutionScalingFixedDPIFactor: 1 78 | excludedTargetPlatforms: [] 79 | - serializedVersion: 2 80 | name: Medium 81 | pixelLightCount: 1 82 | shadows: 1 83 | shadowResolution: 0 84 | shadowProjection: 1 85 | shadowCascades: 1 86 | shadowDistance: 20 87 | shadowNearPlaneOffset: 3 88 | shadowCascade2Split: 0.33333334 89 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 90 | shadowmaskMode: 0 91 | blendWeights: 2 92 | textureQuality: 0 93 | anisotropicTextures: 1 94 | antiAliasing: 0 95 | softParticles: 0 96 | softVegetation: 0 97 | realtimeReflectionProbes: 0 98 | billboardsFaceCameraPosition: 0 99 | vSyncCount: 1 100 | lodBias: 0.7 101 | maximumLODLevel: 0 102 | streamingMipmapsActive: 0 103 | streamingMipmapsAddAllCameras: 1 104 | streamingMipmapsMemoryBudget: 512 105 | streamingMipmapsRenderersPerFrame: 512 106 | streamingMipmapsMaxLevelReduction: 2 107 | streamingMipmapsMaxFileIORequests: 1024 108 | particleRaycastBudget: 64 109 | asyncUploadTimeSlice: 2 110 | asyncUploadBufferSize: 16 111 | asyncUploadPersistentBuffer: 1 112 | resolutionScalingFixedDPIFactor: 1 113 | excludedTargetPlatforms: [] 114 | - serializedVersion: 2 115 | name: High 116 | pixelLightCount: 2 117 | shadows: 2 118 | shadowResolution: 1 119 | shadowProjection: 1 120 | shadowCascades: 2 121 | shadowDistance: 40 122 | shadowNearPlaneOffset: 3 123 | shadowCascade2Split: 0.33333334 124 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 125 | shadowmaskMode: 1 126 | blendWeights: 2 127 | textureQuality: 0 128 | anisotropicTextures: 1 129 | antiAliasing: 0 130 | softParticles: 0 131 | softVegetation: 1 132 | realtimeReflectionProbes: 1 133 | billboardsFaceCameraPosition: 1 134 | vSyncCount: 1 135 | lodBias: 1 136 | maximumLODLevel: 0 137 | streamingMipmapsActive: 0 138 | streamingMipmapsAddAllCameras: 1 139 | streamingMipmapsMemoryBudget: 512 140 | streamingMipmapsRenderersPerFrame: 512 141 | streamingMipmapsMaxLevelReduction: 2 142 | streamingMipmapsMaxFileIORequests: 1024 143 | particleRaycastBudget: 256 144 | asyncUploadTimeSlice: 2 145 | asyncUploadBufferSize: 16 146 | asyncUploadPersistentBuffer: 1 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Very High 151 | pixelLightCount: 3 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 2 156 | shadowDistance: 70 157 | shadowNearPlaneOffset: 3 158 | shadowCascade2Split: 0.33333334 159 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 160 | shadowmaskMode: 1 161 | blendWeights: 4 162 | textureQuality: 0 163 | anisotropicTextures: 2 164 | antiAliasing: 2 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 1.5 171 | maximumLODLevel: 0 172 | streamingMipmapsActive: 0 173 | streamingMipmapsAddAllCameras: 1 174 | streamingMipmapsMemoryBudget: 512 175 | streamingMipmapsRenderersPerFrame: 512 176 | streamingMipmapsMaxLevelReduction: 2 177 | streamingMipmapsMaxFileIORequests: 1024 178 | particleRaycastBudget: 1024 179 | asyncUploadTimeSlice: 2 180 | asyncUploadBufferSize: 16 181 | asyncUploadPersistentBuffer: 1 182 | resolutionScalingFixedDPIFactor: 1 183 | excludedTargetPlatforms: [] 184 | - serializedVersion: 2 185 | name: Ultra 186 | pixelLightCount: 4 187 | shadows: 2 188 | shadowResolution: 2 189 | shadowProjection: 1 190 | shadowCascades: 4 191 | shadowDistance: 150 192 | shadowNearPlaneOffset: 3 193 | shadowCascade2Split: 0.33333334 194 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 195 | shadowmaskMode: 1 196 | blendWeights: 4 197 | textureQuality: 0 198 | anisotropicTextures: 2 199 | antiAliasing: 2 200 | softParticles: 1 201 | softVegetation: 1 202 | realtimeReflectionProbes: 1 203 | billboardsFaceCameraPosition: 1 204 | vSyncCount: 1 205 | lodBias: 2 206 | maximumLODLevel: 0 207 | streamingMipmapsActive: 0 208 | streamingMipmapsAddAllCameras: 1 209 | streamingMipmapsMemoryBudget: 512 210 | streamingMipmapsRenderersPerFrame: 512 211 | streamingMipmapsMaxLevelReduction: 2 212 | streamingMipmapsMaxFileIORequests: 1024 213 | particleRaycastBudget: 4096 214 | asyncUploadTimeSlice: 2 215 | asyncUploadBufferSize: 16 216 | asyncUploadPersistentBuffer: 1 217 | resolutionScalingFixedDPIFactor: 1 218 | excludedTargetPlatforms: [] 219 | m_PerPlatformDefaultQuality: 220 | Android: 2 221 | Lumin: 5 222 | Nintendo 3DS: 5 223 | Nintendo Switch: 5 224 | PS4: 5 225 | PSP2: 2 226 | Stadia: 5 227 | Standalone: 5 228 | WebGL: 3 229 | Windows Store Apps: 5 230 | XboxOne: 5 231 | iPhone: 2 232 | tvOS: 2 233 | -------------------------------------------------------------------------------- /ProjectSettings/SceneTemplateSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "templatePinStates": [], 3 | "dependencyTypeInfos": [ 4 | { 5 | "userAdded": false, 6 | "type": "UnityEngine.AnimationClip", 7 | "ignore": false, 8 | "defaultInstantiationMode": 0, 9 | "supportsModification": true 10 | }, 11 | { 12 | "userAdded": false, 13 | "type": "UnityEditor.Animations.AnimatorController", 14 | "ignore": false, 15 | "defaultInstantiationMode": 0, 16 | "supportsModification": true 17 | }, 18 | { 19 | "userAdded": false, 20 | "type": "UnityEngine.AnimatorOverrideController", 21 | "ignore": false, 22 | "defaultInstantiationMode": 0, 23 | "supportsModification": true 24 | }, 25 | { 26 | "userAdded": false, 27 | "type": "UnityEditor.Audio.AudioMixerController", 28 | "ignore": false, 29 | "defaultInstantiationMode": 0, 30 | "supportsModification": true 31 | }, 32 | { 33 | "userAdded": false, 34 | "type": "UnityEngine.ComputeShader", 35 | "ignore": true, 36 | "defaultInstantiationMode": 1, 37 | "supportsModification": true 38 | }, 39 | { 40 | "userAdded": false, 41 | "type": "UnityEngine.Cubemap", 42 | "ignore": false, 43 | "defaultInstantiationMode": 0, 44 | "supportsModification": true 45 | }, 46 | { 47 | "userAdded": false, 48 | "type": "UnityEngine.GameObject", 49 | "ignore": false, 50 | "defaultInstantiationMode": 0, 51 | "supportsModification": true 52 | }, 53 | { 54 | "userAdded": false, 55 | "type": "UnityEditor.LightingDataAsset", 56 | "ignore": false, 57 | "defaultInstantiationMode": 0, 58 | "supportsModification": false 59 | }, 60 | { 61 | "userAdded": false, 62 | "type": "UnityEngine.LightingSettings", 63 | "ignore": false, 64 | "defaultInstantiationMode": 0, 65 | "supportsModification": true 66 | }, 67 | { 68 | "userAdded": false, 69 | "type": "UnityEngine.Material", 70 | "ignore": false, 71 | "defaultInstantiationMode": 0, 72 | "supportsModification": true 73 | }, 74 | { 75 | "userAdded": false, 76 | "type": "UnityEditor.MonoScript", 77 | "ignore": true, 78 | "defaultInstantiationMode": 1, 79 | "supportsModification": true 80 | }, 81 | { 82 | "userAdded": false, 83 | "type": "UnityEngine.PhysicMaterial", 84 | "ignore": false, 85 | "defaultInstantiationMode": 0, 86 | "supportsModification": true 87 | }, 88 | { 89 | "userAdded": false, 90 | "type": "UnityEngine.PhysicsMaterial2D", 91 | "ignore": false, 92 | "defaultInstantiationMode": 0, 93 | "supportsModification": true 94 | }, 95 | { 96 | "userAdded": false, 97 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile", 98 | "ignore": false, 99 | "defaultInstantiationMode": 0, 100 | "supportsModification": true 101 | }, 102 | { 103 | "userAdded": false, 104 | "type": "UnityEngine.Rendering.PostProcessing.PostProcessResources", 105 | "ignore": false, 106 | "defaultInstantiationMode": 0, 107 | "supportsModification": true 108 | }, 109 | { 110 | "userAdded": false, 111 | "type": "UnityEngine.Rendering.VolumeProfile", 112 | "ignore": false, 113 | "defaultInstantiationMode": 0, 114 | "supportsModification": true 115 | }, 116 | { 117 | "userAdded": false, 118 | "type": "UnityEditor.SceneAsset", 119 | "ignore": false, 120 | "defaultInstantiationMode": 0, 121 | "supportsModification": false 122 | }, 123 | { 124 | "userAdded": false, 125 | "type": "UnityEngine.Shader", 126 | "ignore": true, 127 | "defaultInstantiationMode": 1, 128 | "supportsModification": true 129 | }, 130 | { 131 | "userAdded": false, 132 | "type": "UnityEngine.ShaderVariantCollection", 133 | "ignore": true, 134 | "defaultInstantiationMode": 1, 135 | "supportsModification": true 136 | }, 137 | { 138 | "userAdded": false, 139 | "type": "UnityEngine.Texture", 140 | "ignore": false, 141 | "defaultInstantiationMode": 0, 142 | "supportsModification": true 143 | }, 144 | { 145 | "userAdded": false, 146 | "type": "UnityEngine.Texture2D", 147 | "ignore": false, 148 | "defaultInstantiationMode": 0, 149 | "supportsModification": true 150 | }, 151 | { 152 | "userAdded": false, 153 | "type": "UnityEngine.Timeline.TimelineAsset", 154 | "ignore": false, 155 | "defaultInstantiationMode": 0, 156 | "supportsModification": true 157 | } 158 | ], 159 | "defaultDependencyTypeInfo": { 160 | "userAdded": false, 161 | "type": "", 162 | "ignore": false, 163 | "defaultInstantiationMode": 1, 164 | "supportsModification": true 165 | }, 166 | "newSceneOverride": 0 167 | } -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: [] 7 | layers: 8 | - Default 9 | - TransparentFX 10 | - Ignore Raycast 11 | - 12 | - Water 13 | - UI 14 | - 15 | - 16 | - 17 | - 18 | - 19 | - 20 | - 21 | - 22 | - 23 | - 24 | - 25 | - 26 | - 27 | - 28 | - 29 | - 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | m_SortingLayers: 41 | - name: Default 42 | uniqueID: 0 43 | locked: 0 44 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.33333334 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | UnityAdsSettings: 27 | m_Enabled: 0 28 | m_InitializeOnStartup: 1 29 | m_TestMode: 0 30 | m_IosGameId: 31 | m_AndroidGameId: 32 | m_GameIds: {} 33 | m_GameId: 34 | PerformanceReportingSettings: 35 | m_Enabled: 0 36 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_StripUpdateShader: {fileID: 0} 10 | m_RenderPipeSettingsPath: 11 | m_FixedTimeStep: 0.016666668 12 | m_MaxDeltaTime: 0.05 13 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Path Tools 2 | 3 | A Unity package that allows you to create and manipulate paths for game objects to follow. This tool is simple to use, customizable, and supports baking paths for improved performance. 4 | 5 | ![Path Editor Preview](https://github.com/romifauzi/PathTools/raw/main/PathTools.gif) 6 | 7 | ## Installation 8 | 9 | 1. Open Unity and go to the **Package Manager** window. 10 | 2. Press the `+` button in the top left corner. 11 | 3. Choose **"Add package from Git URL..."** 12 | 4. Paste the following URL:`https://github.com/romifauzi/PathTools.git?path=/Assets/PathTools` 13 | 5. The package will be added to your project. You can also check the included samples for example scenes and usage. 14 | 15 | ## How to Use 16 | 17 | 1. **Add the Path Script:** 18 | - Add the `PathScript` component to any GameObject. 19 | - Start adding nodes to create your path, then move and adjust the nodes and their handles as needed. 20 | 21 | 2. **Make an Object Follow the Path:** 22 | - Add the `MoveAlongPath` component to any GameObject that you want to move along the path. 23 | - Assign the GameObject with the `PathScript` component to the `path` field in the `MoveAlongPath` component. 24 | - Adjust properties in `MoveAlongPath` such as speed, looping, etc., to suit your needs. 25 | - Done! Your GameObject will now follow the path. 26 | 27 | ## How to Bake Path 28 | 29 | Baking the path can improve performance by precomputing the path data. 30 | 31 | 1. **Add the BakedPath Component:** 32 | - Add the `BakedPath` component to a different GameObject (separate from the one with `PathScript`). 33 | 34 | 2. **Bake the Path:** 35 | - In the inspector of the GameObject with the `PathScript` component, drag the GameObject with the `BakedPath` component to the **"Baked Path"** field. 36 | - Press the **BAKE** button. 37 | 38 | Now, the `MoveAlongPath` component can use the baked path for better performance by assigning the `BakedPath` GameObject. 39 | 40 | ## Customizing Path Movement 41 | 42 | If you want to customize or create your own path-following behavior, feel free to explore the `MoveAlongPath` script. It offers a straightforward way to work with the `PathBase` object, and you should be able to easily adapt it to fit your own requirements. 43 | 44 | --- 45 | 46 | Enjoy using **Path Tools** to create smooth and dynamic paths in your Unity projects and please report any bug, Thanks! 47 | -------------------------------------------------------------------------------- /UserSettings/EditorUserSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!162 &1 4 | EditorUserSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 4 7 | m_ConfigSettings: 8 | RecentlyUsedScenePath-0: 9 | value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d 10 | flags: 0 11 | RecentlyUsedScenePath-1: 12 | value: 224247031146466b0c1a04161f2c530359241b2f222d357f1d28093bd6ef3b34f1c22ee8ea2a33397717e1351027 13 | flags: 0 14 | vcSharedLogLevel: 15 | value: 0d5e400f0650 16 | flags: 0 17 | m_VCAutomaticAdd: 1 18 | m_VCDebugCom: 0 19 | m_VCDebugCmd: 0 20 | m_VCDebugOut: 0 21 | m_SemanticMergeMode: 2 22 | m_VCShowFailedCheckout: 1 23 | m_VCOverwriteFailedCheckoutAssets: 1 24 | m_VCProjectOverlayIcons: 1 25 | m_VCHierarchyOverlayIcons: 1 26 | m_VCOtherOverlayIcons: 1 27 | m_VCAllowAsyncUpdate: 1 28 | --------------------------------------------------------------------------------