├── ProjectSettings ├── ProjectVersion.txt ├── ClusterInputManager.asset ├── NetworkManager.asset ├── TimeManager.asset ├── EditorBuildSettings.asset ├── AudioManager.asset ├── TagManager.asset ├── EditorSettings.asset ├── PresetManager.asset ├── UnityConnectSettings.asset ├── DynamicsManager.asset ├── Physics2DSettings.asset ├── NavMeshAreas.asset ├── GraphicsSettings.asset ├── QualitySettings.asset ├── InputManager.asset └── ProjectSettings.asset ├── .gitattributes ├── FastGizmos.unitypackage ├── Assets ├── Gizmos │ ├── GizmoTest.png │ └── GizmoTest.png.meta ├── Gizmos.meta ├── Utils.meta └── Utils │ ├── FastGizmos.meta │ └── FastGizmos │ ├── Demo │ ├── DemoScene.unity.meta │ └── DemoScene.unity │ ├── Demo.meta │ ├── Editor.meta │ ├── Scripts.meta │ ├── Scripts │ ├── FastGizmos.cs.meta │ ├── FastGizmosExtra.cs.meta │ ├── FastGizmosHandleText.cs.meta │ ├── FastGizmosHandleText.cs │ ├── FastGizmosExtra.cs │ └── FastGizmos.cs │ └── Editor │ ├── FastGizmosEditor.cs.meta │ ├── FastGizmosHandleTextEditor.cs.meta │ ├── FastGizmosHandleTextEditor.cs │ └── FastGizmosEditor.cs ├── ReadmeImages ├── FastGizmosExample.gif └── FastGizmoHandleTextExample.gif ├── .gitignore ├── LICENSE └── README.md /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2018.2.10f1 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /FastGizmos.unitypackage: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sverdegd/FastGizmosUnity/HEAD/FastGizmos.unitypackage -------------------------------------------------------------------------------- /Assets/Gizmos/GizmoTest.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sverdegd/FastGizmosUnity/HEAD/Assets/Gizmos/GizmoTest.png -------------------------------------------------------------------------------- /ReadmeImages/FastGizmosExample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sverdegd/FastGizmosUnity/HEAD/ReadmeImages/FastGizmosExample.gif -------------------------------------------------------------------------------- /ReadmeImages/FastGizmoHandleTextExample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sverdegd/FastGizmosUnity/HEAD/ReadmeImages/FastGizmoHandleTextExample.gif -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Gizmos.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f1002b8cc9e58c04282b37f7de7766c2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Utils.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8e1e07a748a88a4dbfeac1e07b397d1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2caed2b9dab363145a19d4c1ea7c77d2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Demo/DemoScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99c9720ab356a0642a771bea13969a05 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Demo.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a496f49e480730a43b12bfced83ab9a8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c987358aed96cc046994a6d74d4fa9d3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26599e66ba2b90048802308c2a0c0705 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /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.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Scripts/FastGizmos.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fed54dd0b0fddc243928de0b5ecc69af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Editor/FastGizmosEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00f700bfbd0a44e47a1ffc3b2668d02c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Scripts/FastGizmosExtra.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d90169c721794024aa00f6b186be5b1d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /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 | - enabled: 1 9 | path: Assets/Scenes/SampleScene.unity 10 | guid: 99c9720ab356a0642a771bea13969a05 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Scripts/FastGizmosHandleText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7224eb85b9556f4982ad7cec513d75b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Editor/FastGizmosHandleTextEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edb995a46c28ff54cbe582a4e4b3ca8a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Scripts/FastGizmosHandleText.cs: -------------------------------------------------------------------------------- 1 | //FastGizmos Tool by SVerde 2 | //contact@sverdegd.com 3 | //https://github.com/sverdegd 4 | 5 | using UnityEngine; 6 | 7 | namespace SVerdeTools.FastGizmos 8 | { 9 | public class FastGizmosHandleText : MonoBehaviour 10 | { 11 | public bool enable = true; 12 | public string text = string.Empty; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /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 | - PostProcessing 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 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### 2 | # Unity folders and files 3 | ### 4 | [Aa]ssets/AssetStoreTools* 5 | [Bb]uild/ 6 | [Ll]ibrary/ 7 | [Ll]ocal[Cc]ache/ 8 | [Oo]bj/ 9 | [Tt]emp/ 10 | [Uu]nityGenerated/ 11 | # file on crash reports 12 | sysinfo.txt 13 | # Unity3D generated meta files 14 | *.pidb.meta 15 | 16 | ### 17 | # VS/MD solution and project files 18 | ### 19 | [Ee]xportedObj/ 20 | *.booproj 21 | *.csproj 22 | *.sln 23 | *.suo 24 | *.svd 25 | *.unityproj 26 | *.user 27 | *.userprefs 28 | *.pidb 29 | .DS_Store 30 | 31 | ### 32 | # OS generated 33 | ### 34 | .DS_Store 35 | .DS_Store? 36 | ._* 37 | .Spotlight-V100 38 | .Trashes 39 | Icon? 40 | ehthumbs.db 41 | Thumbs.db -------------------------------------------------------------------------------- /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: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 0 11 | m_SpritePackerMode: 0 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /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 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 108 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: c1cf8506f04ef2c4a88b64b6c4202eea, 13 | type: 2} 14 | - type: 15 | m_NativeTypeID: 1020 16 | m_ManagedTypePPtr: {fileID: 0} 17 | m_ManagedTypeFallback: 18 | defaultPresets: 19 | - m_Preset: {fileID: 2655988077585873504, guid: 0cd792cc87e492d43b4e95b205fc5cc6, 20 | type: 2} 21 | - type: 22 | m_NativeTypeID: 1006 23 | m_ManagedTypePPtr: {fileID: 0} 24 | m_ManagedTypeFallback: 25 | defaultPresets: 26 | - m_Preset: {fileID: 2655988077585873504, guid: 7a99f8aa944efe94cb9bd74562b7d5f9, 27 | type: 2} 28 | -------------------------------------------------------------------------------- /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 | m_Enabled: 0 7 | m_TestMode: 0 8 | m_TestEventUrl: 9 | m_TestConfigUrl: 10 | m_TestInitMode: 0 11 | CrashReportingSettings: 12 | m_EventUrl: https://perf-events.cloud.unity3d.com/api/events/crashes 13 | m_NativeEventUrl: https://perf-events.cloud.unity3d.com/symbolicate 14 | m_Enabled: 0 15 | m_CaptureEditorExceptions: 1 16 | UnityPurchasingSettings: 17 | m_Enabled: 0 18 | m_TestMode: 0 19 | UnityAnalyticsSettings: 20 | m_Enabled: 0 21 | m_InitializeOnStartup: 1 22 | m_TestMode: 0 23 | m_TestEventUrl: 24 | m_TestConfigUrl: 25 | UnityAdsSettings: 26 | m_Enabled: 0 27 | m_InitializeOnStartup: 1 28 | m_TestMode: 0 29 | m_IosGameId: 30 | m_AndroidGameId: 31 | m_GameIds: {} 32 | m_GameId: 33 | PerformanceReportingSettings: 34 | m_Enabled: 0 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Sergio Verde 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /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: 7 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: 1 23 | m_ClothInterCollisionSettingsToggle: 0 24 | m_ContactPairsMode: 0 25 | m_BroadphaseType: 0 26 | m_WorldBounds: 27 | m_Center: {x: 0, y: 0, z: 0} 28 | m_Extent: {x: 250, y: 250, z: 250} 29 | m_WorldSubdivisions: 8 30 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FastGizmosUnity 2 | Fast Gizmos is a Unity tool that allows to visualize and cusmtomize gizmos quickly. 3 | 4 | You can use the default unity gizmos plus the following extra gizmos: LineExtended, CubeExtended, WireCubeExtended and CameraOrthographic. 5 | ## FastGizmos Example 6 | ![Example](https://github.com/sverdegd/FastGizmosUnity/blob/master/ReadmeImages/FastGizmosExample.gif) 7 | ## FastGizmos HandleText Example 8 | ![Example](https://github.com/sverdegd/FastGizmosUnity/blob/master/ReadmeImages/FastGizmoHandleTextExample.gif) 9 | ## FastGizmos Extras 10 | Add the next using directive: 11 | 12 | `using SVerdeTools.FastGizmos;` 13 | 14 | * To draw ExtendedLine: 15 | 16 | `FastGizmosExtra.DrawLineExtended(Vector3 startPoint, Vector3 endPoint, float thickness);` 17 | 18 | * To draw CubeExtended: 19 | 20 | `FastGizmosExtra.DrawCubeExtended(Vector3 position, Quaternion rotation, Vector3 scale);` 21 | 22 | * To draw WireCubeExtended: 23 | 24 | `FastGizmosExtra.DrawWireCubeExtended(Vector3 position, Quaternion rotation, Vector3 scale);` 25 | 26 | * To draw CameraOrthographic you can use this options: 27 | 28 | `FastGizmosExtra.DrawCameraOrthographic(Camera camera);` 29 | 30 | `FastGizmosExtra.DrawCameraOrthographic(Camera camera, Color gizmoColor);` 31 | 32 | `FastGizmosExtra.DrawCameraOrthographic(Camera camera, Color gizmoColor, bool showVertex);` 33 | 34 | -------------------------------------------------------------------------------- /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: 3 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_AutoSimulation: 1 23 | m_QueriesHitTriggers: 1 24 | m_QueriesStartInColliders: 1 25 | m_ChangeStopsCallbacks: 0 26 | m_CallbacksOnDisable: 1 27 | m_AutoSyncTransforms: 1 28 | m_AlwaysShowColliders: 0 29 | m_ShowColliderSleep: 1 30 | m_ShowColliderContacts: 0 31 | m_ShowColliderAABB: 0 32 | m_ContactArrowScale: 0.2 33 | m_ColliderAwakeColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.7529412} 34 | m_ColliderAsleepColor: {r: 0.5686275, g: 0.95686275, b: 0.54509807, a: 0.36078432} 35 | m_ColliderContactColor: {r: 1, g: 0, b: 1, a: 0.6862745} 36 | m_ColliderAABBColor: {r: 1, g: 1, b: 0, a: 0.2509804} 37 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 38 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Editor/FastGizmosHandleTextEditor.cs: -------------------------------------------------------------------------------- 1 | //FastGizmos Tool by SVerde 2 | //contact@sverdegd.com 3 | //https://github.com/sverdegd 4 | 5 | using UnityEngine; 6 | using UnityEditor; 7 | 8 | namespace SVerdeTools.FastGizmos 9 | { 10 | [CustomEditor(typeof(FastGizmosHandleText))] 11 | public class FastGizmosHandleTextEditor : Editor 12 | { 13 | string text; 14 | bool enable; 15 | 16 | public override void OnInspectorGUI() 17 | { 18 | FastGizmosHandleText myTarget = (FastGizmosHandleText)target; 19 | 20 | EditorGUI.BeginChangeCheck(); 21 | enable = EditorGUILayout.Toggle("Enable", myTarget.enable); 22 | if (EditorGUI.EndChangeCheck()) 23 | { 24 | EditorUtility.SetDirty(myTarget); 25 | myTarget.enable = enable; 26 | } 27 | 28 | if (enable) 29 | { 30 | EditorGUI.BeginChangeCheck(); 31 | text = EditorGUILayout.TextField("Text", myTarget.text); 32 | if (EditorGUI.EndChangeCheck()) 33 | { 34 | EditorUtility.SetDirty(myTarget); 35 | myTarget.text = text; 36 | } 37 | } 38 | else 39 | { 40 | EditorGUILayout.HelpBox("The Text is disabled", MessageType.Info, true); 41 | } 42 | 43 | } 44 | 45 | void OnSceneGUI() 46 | { 47 | 48 | FastGizmosHandleText myTarget = (FastGizmosHandleText)target; 49 | if (myTarget == null) 50 | return; 51 | 52 | if (!myTarget.enable) 53 | return; 54 | 55 | Handles.Label(myTarget.transform.position, myTarget.text); 56 | 57 | } 58 | } 59 | } -------------------------------------------------------------------------------- /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: 12 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 | -------------------------------------------------------------------------------- /Assets/Gizmos/GizmoTest.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9de157aaa22f39947837e0701f99c101 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | externalObjects: {} 6 | serializedVersion: 7 7 | mipmaps: 8 | mipMapMode: 0 9 | enableMipMap: 0 10 | sRGBTexture: 1 11 | linearTexture: 0 12 | fadeOut: 0 13 | borderMipMap: 0 14 | mipMapsPreserveCoverage: 0 15 | alphaTestReferenceValue: 0.5 16 | mipMapFadeDistanceStart: 1 17 | mipMapFadeDistanceEnd: 3 18 | bumpmap: 19 | convertToNormalMap: 0 20 | externalNormalMap: 0 21 | heightScale: 0.25 22 | normalMapFilter: 0 23 | isReadable: 0 24 | streamingMipmaps: 0 25 | streamingMipmapsPriority: 0 26 | grayScaleToAlpha: 0 27 | generateCubemap: 6 28 | cubemapConvolution: 0 29 | seamlessCubemap: 0 30 | textureFormat: 1 31 | maxTextureSize: 2048 32 | textureSettings: 33 | serializedVersion: 2 34 | filterMode: 0 35 | aniso: 1 36 | mipBias: -100 37 | wrapU: 1 38 | wrapV: 1 39 | wrapW: -1 40 | nPOTScale: 0 41 | lightmap: 0 42 | compressionQuality: 50 43 | spriteMode: 0 44 | spriteExtrude: 1 45 | spriteMeshType: 1 46 | alignment: 0 47 | spritePivot: {x: 0.5, y: 0.5} 48 | spritePixelsToUnits: 100 49 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 50 | spriteGenerateFallbackPhysicsShape: 1 51 | alphaUsage: 1 52 | alphaIsTransparency: 1 53 | spriteTessellationDetail: -1 54 | textureType: 2 55 | textureShape: 1 56 | singleChannelComponent: 0 57 | maxTextureSizeSet: 0 58 | compressionQualitySet: 0 59 | textureFormatSet: 0 60 | platformSettings: 61 | - serializedVersion: 2 62 | buildTarget: DefaultTexturePlatform 63 | maxTextureSize: 512 64 | resizeAlgorithm: 0 65 | textureFormat: -1 66 | textureCompression: 1 67 | compressionQuality: 50 68 | crunchedCompression: 0 69 | allowsAlphaSplitting: 0 70 | overridden: 0 71 | androidETC2FallbackOverride: 0 72 | - serializedVersion: 2 73 | buildTarget: Standalone 74 | maxTextureSize: 512 75 | resizeAlgorithm: 0 76 | textureFormat: -1 77 | textureCompression: 1 78 | compressionQuality: 50 79 | crunchedCompression: 0 80 | allowsAlphaSplitting: 0 81 | overridden: 0 82 | androidETC2FallbackOverride: 0 83 | - serializedVersion: 2 84 | buildTarget: Android 85 | maxTextureSize: 512 86 | resizeAlgorithm: 0 87 | textureFormat: -1 88 | textureCompression: 1 89 | compressionQuality: 50 90 | crunchedCompression: 0 91 | allowsAlphaSplitting: 0 92 | overridden: 0 93 | androidETC2FallbackOverride: 0 94 | - serializedVersion: 2 95 | buildTarget: WebGL 96 | maxTextureSize: 512 97 | resizeAlgorithm: 0 98 | textureFormat: -1 99 | textureCompression: 1 100 | compressionQuality: 50 101 | crunchedCompression: 0 102 | allowsAlphaSplitting: 0 103 | overridden: 0 104 | androidETC2FallbackOverride: 0 105 | spriteSheet: 106 | serializedVersion: 2 107 | sprites: [] 108 | outline: [] 109 | physicsShape: [] 110 | bones: [] 111 | spriteID: 112 | vertices: [] 113 | indices: 114 | edges: [] 115 | weights: [] 116 | spritePackingTag: 117 | pSDRemoveMatte: 0 118 | pSDShowRemoveMatteOption: 0 119 | userData: 120 | assetBundleName: 121 | assetBundleVariant: 122 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Scripts/FastGizmosExtra.cs: -------------------------------------------------------------------------------- 1 | //FastGizmos Tool by SVerde 2 | //contact@sverdegd.com 3 | //https://github.com/sverdegd 4 | 5 | using UnityEngine; 6 | 7 | namespace SVerdeTools.FastGizmos { 8 | 9 | public class FastGizmosExtra{ 10 | 11 | public static void DrawLineExtended(Vector3 startPoint, Vector3 endPoint, float thickness) 12 | { 13 | Vector3 position = (startPoint + endPoint) / 2; 14 | Quaternion rotation = Quaternion.LookRotation(endPoint - startPoint, Vector3.forward); 15 | 16 | DrawCubeExtended(position, rotation, Vector3.forward * Vector3.Distance(startPoint, endPoint) + Vector3.one * thickness); 17 | } 18 | 19 | public static void DrawCubeExtended(Vector3 position, Quaternion rotation, Vector3 scale) 20 | { 21 | Matrix4x4 cubeTransform = Matrix4x4.TRS(position, rotation, scale); 22 | Matrix4x4 oldGizmosMatrix = Gizmos.matrix; 23 | 24 | Gizmos.matrix *= cubeTransform; 25 | 26 | Gizmos.DrawCube(Vector3.zero, Vector3.one); 27 | 28 | Gizmos.matrix = oldGizmosMatrix; 29 | } 30 | 31 | public static void DrawWireCubeExtended(Vector3 position, Quaternion rotation, Vector3 scale) 32 | { 33 | Matrix4x4 cubeTransform = Matrix4x4.TRS(position, rotation, scale); 34 | Matrix4x4 oldGizmosMatrix = Gizmos.matrix; 35 | 36 | Gizmos.matrix *= cubeTransform; 37 | 38 | Gizmos.DrawWireCube(Vector3.zero, Vector3.one); 39 | 40 | Gizmos.matrix = oldGizmosMatrix; 41 | } 42 | 43 | #region DrawCameraOrthographic 44 | public static void DrawCameraOrthographic(Camera camera) 45 | { 46 | DrawCameraOrthographic(camera, Color.red, false); 47 | } 48 | 49 | public static void DrawCameraOrthographic(Camera camera, Color gizmoColor) 50 | { 51 | DrawCameraOrthographic(camera, gizmoColor, false); 52 | } 53 | 54 | public static void DrawCameraOrthographic(Camera camera, Color gizmoColor, bool showVertex) 55 | { 56 | if (camera == null) 57 | return; 58 | 59 | Vector3 x0y0 = new Vector3(camera.aspect * -camera.orthographicSize + camera.transform.position.x, camera.orthographicSize + camera.transform.position.y); 60 | Vector3 x1y0 = new Vector3(camera.aspect * camera.orthographicSize + camera.transform.position.x, camera.orthographicSize + camera.transform.position.y); 61 | Vector3 x0y1 = new Vector3(camera.aspect * camera.orthographicSize + camera.transform.position.x, -camera.orthographicSize + camera.transform.position.y); 62 | Vector3 x1y1 = new Vector3(camera.aspect * -camera.orthographicSize + camera.transform.position.x, -camera.orthographicSize + camera.transform.position.y); 63 | 64 | Gizmos.color = gizmoColor; 65 | 66 | Gizmos.DrawLine(x0y0, x1y0); 67 | Gizmos.DrawLine(x1y0, x0y1); 68 | Gizmos.DrawLine(x1y1, x0y1); 69 | Gizmos.DrawLine(x0y0, x1y1); 70 | 71 | if (showVertex) 72 | { 73 | Gizmos.DrawSphere(x0y0, 0.1f); 74 | Gizmos.DrawSphere(x1y0, 0.1f); 75 | Gizmos.DrawSphere(x0y1, 0.1f); 76 | Gizmos.DrawSphere(x1y1, 0.1f); 77 | } 78 | 79 | Gizmos.color = Color.white; 80 | } 81 | #endregion 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /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: 4 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 | particleRaycastBudget: 4 33 | asyncUploadTimeSlice: 2 34 | asyncUploadBufferSize: 4 35 | resolutionScalingFixedDPIFactor: 1 36 | excludedTargetPlatforms: [] 37 | - serializedVersion: 2 38 | name: Low 39 | pixelLightCount: 0 40 | shadows: 0 41 | shadowResolution: 0 42 | shadowProjection: 1 43 | shadowCascades: 1 44 | shadowDistance: 20 45 | shadowNearPlaneOffset: 3 46 | shadowCascade2Split: 0.33333334 47 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 48 | shadowmaskMode: 0 49 | blendWeights: 2 50 | textureQuality: 0 51 | anisotropicTextures: 0 52 | antiAliasing: 0 53 | softParticles: 0 54 | softVegetation: 0 55 | realtimeReflectionProbes: 0 56 | billboardsFaceCameraPosition: 0 57 | vSyncCount: 0 58 | lodBias: 0.4 59 | maximumLODLevel: 0 60 | particleRaycastBudget: 16 61 | asyncUploadTimeSlice: 2 62 | asyncUploadBufferSize: 4 63 | resolutionScalingFixedDPIFactor: 1 64 | excludedTargetPlatforms: [] 65 | - serializedVersion: 2 66 | name: Medium 67 | pixelLightCount: 1 68 | shadows: 1 69 | shadowResolution: 0 70 | shadowProjection: 1 71 | shadowCascades: 1 72 | shadowDistance: 20 73 | shadowNearPlaneOffset: 3 74 | shadowCascade2Split: 0.33333334 75 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 76 | shadowmaskMode: 0 77 | blendWeights: 2 78 | textureQuality: 0 79 | anisotropicTextures: 1 80 | antiAliasing: 0 81 | softParticles: 0 82 | softVegetation: 0 83 | realtimeReflectionProbes: 0 84 | billboardsFaceCameraPosition: 0 85 | vSyncCount: 1 86 | lodBias: 0.7 87 | maximumLODLevel: 0 88 | particleRaycastBudget: 64 89 | asyncUploadTimeSlice: 2 90 | asyncUploadBufferSize: 4 91 | resolutionScalingFixedDPIFactor: 1 92 | excludedTargetPlatforms: [] 93 | - serializedVersion: 2 94 | name: High 95 | pixelLightCount: 2 96 | shadows: 2 97 | shadowResolution: 1 98 | shadowProjection: 1 99 | shadowCascades: 2 100 | shadowDistance: 40 101 | shadowNearPlaneOffset: 3 102 | shadowCascade2Split: 0.33333334 103 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 104 | shadowmaskMode: 1 105 | blendWeights: 2 106 | textureQuality: 0 107 | anisotropicTextures: 1 108 | antiAliasing: 2 109 | softParticles: 0 110 | softVegetation: 1 111 | realtimeReflectionProbes: 1 112 | billboardsFaceCameraPosition: 1 113 | vSyncCount: 1 114 | lodBias: 1 115 | maximumLODLevel: 0 116 | particleRaycastBudget: 256 117 | asyncUploadTimeSlice: 2 118 | asyncUploadBufferSize: 4 119 | resolutionScalingFixedDPIFactor: 1 120 | excludedTargetPlatforms: [] 121 | - serializedVersion: 2 122 | name: Very High 123 | pixelLightCount: 3 124 | shadows: 2 125 | shadowResolution: 2 126 | shadowProjection: 1 127 | shadowCascades: 2 128 | shadowDistance: 40 129 | shadowNearPlaneOffset: 3 130 | shadowCascade2Split: 0.33333334 131 | shadowCascade4Split: {x: 0.06666667, y: 0.2, z: 0.46666667} 132 | shadowmaskMode: 1 133 | blendWeights: 4 134 | textureQuality: 0 135 | anisotropicTextures: 1 136 | antiAliasing: 4 137 | softParticles: 1 138 | softVegetation: 1 139 | realtimeReflectionProbes: 1 140 | billboardsFaceCameraPosition: 1 141 | vSyncCount: 1 142 | lodBias: 1.5 143 | maximumLODLevel: 0 144 | particleRaycastBudget: 1024 145 | asyncUploadTimeSlice: 2 146 | asyncUploadBufferSize: 4 147 | resolutionScalingFixedDPIFactor: 1 148 | excludedTargetPlatforms: [] 149 | - serializedVersion: 2 150 | name: Ultra 151 | pixelLightCount: 4 152 | shadows: 2 153 | shadowResolution: 2 154 | shadowProjection: 1 155 | shadowCascades: 4 156 | shadowDistance: 150 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: 1 164 | antiAliasing: 4 165 | softParticles: 1 166 | softVegetation: 1 167 | realtimeReflectionProbes: 1 168 | billboardsFaceCameraPosition: 1 169 | vSyncCount: 1 170 | lodBias: 2 171 | maximumLODLevel: 0 172 | particleRaycastBudget: 4096 173 | asyncUploadTimeSlice: 2 174 | asyncUploadBufferSize: 4 175 | resolutionScalingFixedDPIFactor: 1 176 | excludedTargetPlatforms: [] 177 | m_PerPlatformDefaultQuality: 178 | Android: 2 179 | Nintendo 3DS: 5 180 | Nintendo Switch: 5 181 | PS4: 5 182 | PSP2: 2 183 | Standalone: 5 184 | Tizen: 2 185 | WebGL: 3 186 | WiiU: 5 187 | Windows Store Apps: 5 188 | XboxOne: 5 189 | iPhone: 2 190 | tvOS: 2 191 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Scripts/FastGizmos.cs: -------------------------------------------------------------------------------- 1 | //FastGizmos Tool by SVerde 2 | //contact@sverdegd.com 3 | //https://github.com/sverdegd 4 | 5 | using System; 6 | using UnityEngine; 7 | 8 | namespace SVerdeTools.FastGizmos 9 | { 10 | 11 | public class FastGizmos : MonoBehaviour 12 | { 13 | 14 | public static readonly string[] Type = new string[] { 15 | "Cube", 16 | "Frustum", 17 | "GUITexture", 18 | "Icon", 19 | "Line", 20 | "Mesh", 21 | "Ray", 22 | "Sphere", 23 | "WireCube", 24 | "WireMesh", 25 | "WireSphere", 26 | "CameraOrthographic", 27 | "LineExtended", 28 | "CubeExtended", 29 | "WireCubeExtended" 30 | }; 31 | 32 | public string type = "Cube"; 33 | public Color color = Color.red; 34 | public bool active = true; 35 | 36 | //Cube 37 | public bool positionIsCenterCube = true; 38 | public Vector3 cubeCenter = Vector3.zero; 39 | public Vector3 cubeSize = Vector3.one; 40 | //Frustrum 41 | public bool positionIsCenterFrustum = true; 42 | public Vector3 frustumCenter = Vector3.zero; 43 | public float fov; 44 | public float maxRange; 45 | public float minRange; 46 | public float aspect; 47 | //GUITexture 48 | public Rect screenRect; 49 | public Texture texture; 50 | public Material mat = null; 51 | //Icon 52 | public bool positionIsCenterIcon = true; 53 | public Vector3 iconCenter; 54 | public string iconName; 55 | public bool allowScaling = true; 56 | //Line 57 | public bool useTwoTransforms = false; 58 | public Vector3 fromV; 59 | public Vector3 toV; 60 | public Transform fromTr; 61 | public Transform toTr; 62 | //Mesh 63 | public Mesh mesh; 64 | public bool transformIsMeshTransform = true; 65 | public Vector3 meshPosition; 66 | public Vector3 meshRotation; 67 | public Vector3 meshScale = Vector3.one; 68 | public int subMeshIndex = -1; 69 | //Ray 70 | public Vector3 fromR; 71 | public Vector3 directionR; 72 | //Sphere 73 | public bool positionIsCenterSphere = true; 74 | public Vector3 sphereCenter = Vector3.zero; 75 | public float radiusS = 1f; 76 | //WireCube 77 | public bool positionIsCenterWireCube = true; 78 | public Vector3 wireCubeCenter = Vector3.zero; 79 | public Vector3 wireCubeSize = Vector3.one; 80 | //WireMesh 81 | public Mesh wireMesh; 82 | public bool transformIsWireMeshTransform = true; 83 | public Vector3 wireMeshPosition; 84 | public Vector3 wireMeshRotation; 85 | public Vector3 wireMeshScale = Vector3.one; 86 | public int subWireMeshIndex = -1; 87 | //Sphere 88 | public bool positionIsCenterWireSphere = true; 89 | public Vector3 wireSphereCenter = Vector3.zero; 90 | public float radiusWS = 1f; 91 | //CameraOrthographic 92 | public Camera cam; 93 | public bool drawVertex = false; 94 | //LineExtended 95 | public Vector3 startPointLE; 96 | public Vector3 endPointLE; 97 | public Transform fromTrLE; 98 | public Transform toTrLE; 99 | public float thickness = 0.05f; 100 | public bool useTwoTransformsLE = false; 101 | //CubeExtended 102 | public Vector3 positionCE = Vector3.zero; 103 | public Vector3 rotationCE = Vector3.zero; 104 | public Vector3 scaleCE = Vector3.one; 105 | //WireCubeExtended 106 | public Vector3 positionWCE = Vector3.zero; 107 | public Vector3 rotationWCE = Vector3.zero; 108 | public Vector3 scaleWCE = Vector3.one; 109 | 110 | 111 | void OnDrawGizmos() 112 | { 113 | if (!active) 114 | return; 115 | 116 | Gizmos.color = color; 117 | 118 | switch (type) 119 | { 120 | case "Cube": 121 | if (!positionIsCenterCube) 122 | Gizmos.DrawCube(cubeCenter, cubeSize); 123 | else 124 | Gizmos.DrawCube(this.transform.position, cubeSize); 125 | break; 126 | case "Frustum": 127 | if (!positionIsCenterFrustum) 128 | Gizmos.DrawFrustum(frustumCenter, fov, maxRange, minRange, aspect); 129 | else 130 | Gizmos.DrawFrustum(this.transform.position, fov, maxRange, minRange, aspect); 131 | break; 132 | case "GUITexture": 133 | if(texture != null) 134 | Gizmos.DrawGUITexture(screenRect, texture, mat); 135 | break; 136 | case "Icon": 137 | if (!positionIsCenterIcon) 138 | Gizmos.DrawIcon(iconCenter, iconName); 139 | else 140 | Gizmos.DrawIcon(this.transform.position, iconName); 141 | break; 142 | case "Line": 143 | if (!useTwoTransforms) 144 | Gizmos.DrawLine(fromV, toV); 145 | else 146 | if(fromTr != null && toTr != null) 147 | Gizmos.DrawLine(fromTr.position, toTr.position); 148 | break; 149 | case "Mesh": 150 | if (!transformIsMeshTransform) 151 | Gizmos.DrawMesh(mesh, subMeshIndex, meshPosition, Quaternion.Euler(meshRotation), meshScale); 152 | else 153 | Gizmos.DrawMesh(mesh, subMeshIndex, this.transform.position, this.transform.rotation, this.transform.localScale); 154 | break; 155 | case "Ray": 156 | Gizmos.DrawRay(fromR, directionR); 157 | break; 158 | case "Sphere": 159 | if (positionIsCenterSphere) 160 | Gizmos.DrawSphere(this.transform.position, radiusS); 161 | else 162 | Gizmos.DrawSphere(sphereCenter, radiusS); 163 | break; 164 | case "WireCube": 165 | if (!positionIsCenterWireCube) 166 | Gizmos.DrawWireCube(wireCubeCenter, wireCubeSize); 167 | else 168 | Gizmos.DrawWireCube(this.transform.position, wireCubeSize); 169 | break; 170 | case "WireMesh": 171 | if (!transformIsWireMeshTransform) 172 | Gizmos.DrawWireMesh(wireMesh, subWireMeshIndex, wireMeshPosition, Quaternion.Euler(wireMeshRotation), wireMeshScale); 173 | else 174 | Gizmos.DrawWireMesh(wireMesh, subWireMeshIndex, this.transform.position, this.transform.rotation, this.transform.localScale); 175 | break; 176 | case "WireSphere": 177 | if (positionIsCenterWireSphere) 178 | Gizmos.DrawWireSphere(this.transform.position, radiusWS); 179 | else 180 | Gizmos.DrawWireSphere(wireSphereCenter, radiusWS); 181 | break; 182 | case "CameraOrthographic": 183 | FastGizmosExtra.DrawCameraOrthographic(cam, color, drawVertex); 184 | break; 185 | case "LineExtended": 186 | if (!useTwoTransformsLE) 187 | FastGizmosExtra.DrawLineExtended(startPointLE, endPointLE, thickness); 188 | else 189 | if (fromTrLE != null && toTrLE != null) 190 | FastGizmosExtra.DrawLineExtended(fromTrLE.position, toTrLE.position, thickness); 191 | break; 192 | case "CubeExtended": 193 | FastGizmosExtra.DrawCubeExtended(positionCE, Quaternion.Euler(rotationCE.x, rotationCE.y, rotationCE.z), scaleCE); 194 | break; 195 | case "WireCubeExtended": 196 | FastGizmosExtra.DrawWireCubeExtended(positionWCE, Quaternion.Euler(rotationWCE.x, rotationWCE.y, rotationWCE.z), scaleWCE); 197 | break; 198 | } 199 | 200 | Gizmos.color = Color.white; 201 | } 202 | 203 | public int GetTypeIndex() 204 | { 205 | for (int i = 0; i < Type.Length; i++) 206 | { 207 | if(type == Type[i]) 208 | { 209 | return i; 210 | } 211 | } 212 | return 0; 213 | } 214 | } 215 | } 216 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Demo/DemoScene.unity: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!29 &1 4 | OcclusionCullingSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_OcclusionBakeSettings: 8 | smallestOccluder: 5 9 | smallestHole: 0.25 10 | backfaceThreshold: 100 11 | m_SceneGUID: 00000000000000000000000000000000 12 | m_OcclusionCullingData: {fileID: 0} 13 | --- !u!104 &2 14 | RenderSettings: 15 | m_ObjectHideFlags: 0 16 | serializedVersion: 9 17 | m_Fog: 0 18 | m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} 19 | m_FogMode: 3 20 | m_FogDensity: 0.01 21 | m_LinearFogStart: 0 22 | m_LinearFogEnd: 300 23 | m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} 24 | m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} 25 | m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} 26 | m_AmbientIntensity: 1 27 | m_AmbientMode: 0 28 | m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} 29 | m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} 30 | m_HaloStrength: 0.5 31 | m_FlareStrength: 1 32 | m_FlareFadeSpeed: 3 33 | m_HaloTexture: {fileID: 0} 34 | m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} 35 | m_DefaultReflectionMode: 0 36 | m_DefaultReflectionResolution: 128 37 | m_ReflectionBounces: 1 38 | m_ReflectionIntensity: 1 39 | m_CustomReflection: {fileID: 0} 40 | m_Sun: {fileID: 0} 41 | m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1} 42 | m_UseRadianceAmbientProbe: 0 43 | --- !u!157 &3 44 | LightmapSettings: 45 | m_ObjectHideFlags: 0 46 | serializedVersion: 11 47 | m_GIWorkflowMode: 0 48 | m_GISettings: 49 | serializedVersion: 2 50 | m_BounceScale: 1 51 | m_IndirectOutputScale: 1 52 | m_AlbedoBoost: 1 53 | m_TemporalCoherenceThreshold: 1 54 | m_EnvironmentLightingMode: 0 55 | m_EnableBakedLightmaps: 1 56 | m_EnableRealtimeLightmaps: 0 57 | m_LightmapEditorSettings: 58 | serializedVersion: 10 59 | m_Resolution: 2 60 | m_BakeResolution: 10 61 | m_AtlasSize: 512 62 | m_AO: 0 63 | m_AOMaxDistance: 1 64 | m_CompAOExponent: 1 65 | m_CompAOExponentDirect: 0 66 | m_Padding: 2 67 | m_LightmapParameters: {fileID: 0} 68 | m_LightmapsBakeMode: 1 69 | m_TextureCompression: 1 70 | m_FinalGather: 0 71 | m_FinalGatherFiltering: 1 72 | m_FinalGatherRayCount: 256 73 | m_ReflectionCompression: 2 74 | m_MixedBakeMode: 2 75 | m_BakeBackend: 1 76 | m_PVRSampling: 1 77 | m_PVRDirectSampleCount: 32 78 | m_PVRSampleCount: 256 79 | m_PVRBounces: 2 80 | m_PVRFilterTypeDirect: 0 81 | m_PVRFilterTypeIndirect: 0 82 | m_PVRFilterTypeAO: 0 83 | m_PVRFilteringMode: 1 84 | m_PVRCulling: 1 85 | m_PVRFilteringGaussRadiusDirect: 1 86 | m_PVRFilteringGaussRadiusIndirect: 5 87 | m_PVRFilteringGaussRadiusAO: 2 88 | m_PVRFilteringAtrousPositionSigmaDirect: 0.5 89 | m_PVRFilteringAtrousPositionSigmaIndirect: 2 90 | m_PVRFilteringAtrousPositionSigmaAO: 1 91 | m_ShowResolutionOverlay: 1 92 | m_LightingDataAsset: {fileID: 0} 93 | m_UseShadowmask: 1 94 | --- !u!196 &4 95 | NavMeshSettings: 96 | serializedVersion: 2 97 | m_ObjectHideFlags: 0 98 | m_BuildSettings: 99 | serializedVersion: 2 100 | agentTypeID: 0 101 | agentRadius: 0.5 102 | agentHeight: 2 103 | agentSlope: 45 104 | agentClimb: 0.4 105 | ledgeDropHeight: 0 106 | maxJumpAcrossDistance: 0 107 | minRegionArea: 2 108 | manualCellSize: 0 109 | cellSize: 0.16666667 110 | manualTileSize: 0 111 | tileSize: 256 112 | accuratePlacement: 0 113 | debug: 114 | m_Flags: 0 115 | m_NavMeshData: {fileID: 0} 116 | --- !u!1 &263428104 117 | GameObject: 118 | m_ObjectHideFlags: 0 119 | m_CorrespondingSourceObject: {fileID: 0} 120 | m_PrefabInternal: {fileID: 0} 121 | serializedVersion: 6 122 | m_Component: 123 | - component: {fileID: 263428106} 124 | - component: {fileID: 263428105} 125 | m_Layer: 0 126 | m_Name: FastGizmoHandleTextExample 127 | m_TagString: Untagged 128 | m_Icon: {fileID: 0} 129 | m_NavMeshLayer: 0 130 | m_StaticEditorFlags: 0 131 | m_IsActive: 1 132 | --- !u!114 &263428105 133 | MonoBehaviour: 134 | m_ObjectHideFlags: 0 135 | m_CorrespondingSourceObject: {fileID: 0} 136 | m_PrefabInternal: {fileID: 0} 137 | m_GameObject: {fileID: 263428104} 138 | m_Enabled: 1 139 | m_EditorHideFlags: 0 140 | m_Script: {fileID: 11500000, guid: a7224eb85b9556f4982ad7cec513d75b, type: 3} 141 | m_Name: 142 | m_EditorClassIdentifier: 143 | enable: 1 144 | text: My Text 145 | --- !u!4 &263428106 146 | Transform: 147 | m_ObjectHideFlags: 0 148 | m_CorrespondingSourceObject: {fileID: 0} 149 | m_PrefabInternal: {fileID: 0} 150 | m_GameObject: {fileID: 263428104} 151 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 152 | m_LocalPosition: {x: 0, y: 0, z: 0} 153 | m_LocalScale: {x: 1, y: 1, z: 1} 154 | m_Children: [] 155 | m_Father: {fileID: 0} 156 | m_RootOrder: 2 157 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 158 | --- !u!1 &534669902 159 | GameObject: 160 | m_ObjectHideFlags: 0 161 | m_CorrespondingSourceObject: {fileID: 0} 162 | m_PrefabInternal: {fileID: 0} 163 | serializedVersion: 6 164 | m_Component: 165 | - component: {fileID: 534669905} 166 | - component: {fileID: 534669904} 167 | - component: {fileID: 534669903} 168 | m_Layer: 0 169 | m_Name: Main Camera 170 | m_TagString: Untagged 171 | m_Icon: {fileID: 0} 172 | m_NavMeshLayer: 0 173 | m_StaticEditorFlags: 0 174 | m_IsActive: 1 175 | --- !u!81 &534669903 176 | AudioListener: 177 | m_ObjectHideFlags: 0 178 | m_CorrespondingSourceObject: {fileID: 0} 179 | m_PrefabInternal: {fileID: 0} 180 | m_GameObject: {fileID: 534669902} 181 | m_Enabled: 1 182 | --- !u!20 &534669904 183 | Camera: 184 | m_ObjectHideFlags: 0 185 | m_CorrespondingSourceObject: {fileID: 0} 186 | m_PrefabInternal: {fileID: 0} 187 | m_GameObject: {fileID: 534669902} 188 | m_Enabled: 1 189 | serializedVersion: 2 190 | m_ClearFlags: 2 191 | m_BackGroundColor: {r: 0.45136172, g: 0.45560157, b: 0.46226418, a: 0} 192 | m_projectionMatrixMode: 1 193 | m_SensorSize: {x: 36, y: 24} 194 | m_LensShift: {x: 0, y: 0} 195 | m_FocalLength: 50 196 | m_NormalizedViewPortRect: 197 | serializedVersion: 2 198 | x: 0 199 | y: 0 200 | width: 1 201 | height: 1 202 | near clip plane: 0.3 203 | far clip plane: 1000 204 | field of view: 60 205 | orthographic: 1 206 | orthographic size: 5 207 | m_Depth: -1 208 | m_CullingMask: 209 | serializedVersion: 2 210 | m_Bits: 4294967295 211 | m_RenderingPath: -1 212 | m_TargetTexture: {fileID: 0} 213 | m_TargetDisplay: 0 214 | m_TargetEye: 3 215 | m_HDR: 1 216 | m_AllowMSAA: 1 217 | m_AllowDynamicResolution: 0 218 | m_ForceIntoRT: 0 219 | m_OcclusionCulling: 1 220 | m_StereoConvergence: 10 221 | m_StereoSeparation: 0.022 222 | --- !u!4 &534669905 223 | Transform: 224 | m_ObjectHideFlags: 0 225 | m_CorrespondingSourceObject: {fileID: 0} 226 | m_PrefabInternal: {fileID: 0} 227 | m_GameObject: {fileID: 534669902} 228 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 229 | m_LocalPosition: {x: 0, y: 1, z: -10} 230 | m_LocalScale: {x: 1, y: 1, z: 1} 231 | m_Children: [] 232 | m_Father: {fileID: 0} 233 | m_RootOrder: 0 234 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 235 | --- !u!1 &1206229936 236 | GameObject: 237 | m_ObjectHideFlags: 0 238 | m_CorrespondingSourceObject: {fileID: 0} 239 | m_PrefabInternal: {fileID: 0} 240 | serializedVersion: 6 241 | m_Component: 242 | - component: {fileID: 1206229938} 243 | - component: {fileID: 1206229937} 244 | m_Layer: 0 245 | m_Name: FastGizmosExample 246 | m_TagString: Untagged 247 | m_Icon: {fileID: 0} 248 | m_NavMeshLayer: 0 249 | m_StaticEditorFlags: 0 250 | m_IsActive: 1 251 | --- !u!114 &1206229937 252 | MonoBehaviour: 253 | m_ObjectHideFlags: 0 254 | m_CorrespondingSourceObject: {fileID: 0} 255 | m_PrefabInternal: {fileID: 0} 256 | m_GameObject: {fileID: 1206229936} 257 | m_Enabled: 1 258 | m_EditorHideFlags: 0 259 | m_Script: {fileID: 11500000, guid: fed54dd0b0fddc243928de0b5ecc69af, type: 3} 260 | m_Name: 261 | m_EditorClassIdentifier: 262 | type: Icon 263 | color: {r: 1, g: 0, b: 0, a: 1} 264 | active: 1 265 | positionIsCenterCube: 1 266 | cubeCenter: {x: 0, y: 0, z: 0} 267 | cubeSize: {x: 1, y: 1, z: 1} 268 | positionIsCenterFrustum: 1 269 | frustumCenter: {x: 0, y: 0, z: 0} 270 | fov: 90 271 | maxRange: 5 272 | minRange: 2 273 | aspect: 1.7777778 274 | screenRect: 275 | serializedVersion: 2 276 | x: 0 277 | y: 0 278 | width: 5 279 | height: 5 280 | texture: {fileID: 10912, guid: 0000000000000000f000000000000000, type: 0} 281 | mat: {fileID: 0} 282 | positionIsCenterIcon: 0 283 | iconCenter: {x: 0, y: 0, z: 0} 284 | iconName: GizmoTest.png 285 | allowScaling: 1 286 | useTwoTransforms: 0 287 | fromV: {x: 0, y: 0, z: 0} 288 | toV: {x: 1, y: 1, z: 1} 289 | fromTr: {fileID: 0} 290 | toTr: {fileID: 0} 291 | mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} 292 | transformIsMeshTransform: 1 293 | meshPosition: {x: 0, y: 0, z: 0} 294 | meshRotation: {x: 0, y: 0, z: 0} 295 | meshScale: {x: 1, y: 1, z: 1} 296 | subMeshIndex: -1 297 | fromR: {x: 0, y: 0, z: 0} 298 | directionR: {x: 1, y: 1, z: 1} 299 | positionIsCenterSphere: 1 300 | sphereCenter: {x: 0, y: 0, z: 0} 301 | radiusS: 1 302 | positionIsCenterWireCube: 1 303 | wireCubeCenter: {x: 0, y: 0, z: 0} 304 | wireCubeSize: {x: 1, y: 1, z: 1} 305 | wireMesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} 306 | transformIsWireMeshTransform: 1 307 | wireMeshPosition: {x: 0, y: 0, z: 0} 308 | wireMeshRotation: {x: 0, y: 0, z: 0} 309 | wireMeshScale: {x: 1, y: 1, z: 1} 310 | subWireMeshIndex: -1 311 | positionIsCenterWireSphere: 1 312 | wireSphereCenter: {x: 0, y: 0, z: 0} 313 | radiusWS: 1 314 | cam: {fileID: 534669904} 315 | drawVertex: 0 316 | startPointLE: {x: 0, y: 0, z: 0} 317 | endPointLE: {x: 1, y: 1, z: 1} 318 | fromTrLE: {fileID: 0} 319 | toTrLE: {fileID: 0} 320 | thickness: 0.05 321 | useTwoTransformsLE: 0 322 | positionCE: {x: 0, y: 0, z: 0} 323 | rotationCE: {x: 45, y: 45, z: 45} 324 | scaleCE: {x: 1, y: 2, z: 0.5} 325 | positionWCE: {x: 0, y: 0, z: 0} 326 | rotationWCE: {x: 45, y: 45, z: 45} 327 | scaleWCE: {x: 1, y: 2, z: 0.5} 328 | --- !u!4 &1206229938 329 | Transform: 330 | m_ObjectHideFlags: 0 331 | m_CorrespondingSourceObject: {fileID: 0} 332 | m_PrefabInternal: {fileID: 0} 333 | m_GameObject: {fileID: 1206229936} 334 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 335 | m_LocalPosition: {x: 0, y: 0, z: 0} 336 | m_LocalScale: {x: 1, y: 1, z: 1} 337 | m_Children: [] 338 | m_Father: {fileID: 0} 339 | m_RootOrder: 1 340 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 341 | -------------------------------------------------------------------------------- /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: 15 7 | productGUID: 6df11d4179084a840906f59ab55696c5 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: Gizmos 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 | m_StackTraceTypes: 010000000100000001000000010000000100000001000000 53 | iosShowActivityIndicatorOnLoading: -1 54 | androidShowActivityIndicatorOnLoading: -1 55 | iosAppInBackgroundBehavior: 0 56 | displayResolutionDialog: 1 57 | iosAllowHTTPDownload: 1 58 | allowedAutorotateToPortrait: 1 59 | allowedAutorotateToPortraitUpsideDown: 1 60 | allowedAutorotateToLandscapeRight: 1 61 | allowedAutorotateToLandscapeLeft: 1 62 | useOSAutorotation: 1 63 | use32BitDisplayBuffer: 1 64 | preserveFramebufferAlpha: 0 65 | disableDepthAndStencilBuffers: 0 66 | androidBlitType: 0 67 | defaultIsNativeResolution: 1 68 | macRetinaSupport: 1 69 | runInBackground: 1 70 | captureSingleScreen: 0 71 | muteOtherAudioSources: 0 72 | Prepare IOS For Recording: 0 73 | Force IOS Speakers When Recording: 0 74 | deferSystemGesturesMode: 0 75 | hideHomeButton: 0 76 | submitAnalytics: 1 77 | usePlayerLog: 1 78 | bakeCollisionMeshes: 0 79 | forceSingleInstance: 0 80 | resizableWindow: 0 81 | useMacAppStoreValidation: 0 82 | macAppStoreCategory: public.app-category.games 83 | gpuSkinning: 1 84 | graphicsJobs: 0 85 | xboxPIXTextureCapture: 0 86 | xboxEnableAvatar: 0 87 | xboxEnableKinect: 0 88 | xboxEnableKinectAutoTracking: 0 89 | xboxEnableFitness: 0 90 | visibleInBackground: 1 91 | allowFullscreenSwitch: 1 92 | graphicsJobMode: 0 93 | fullscreenMode: 1 94 | xboxSpeechDB: 0 95 | xboxEnableHeadOrientation: 0 96 | xboxEnableGuest: 0 97 | xboxEnablePIXSampling: 0 98 | metalFramebufferOnly: 0 99 | n3dsDisableStereoscopicView: 0 100 | n3dsEnableSharedListOpt: 1 101 | n3dsEnableVSync: 0 102 | xboxOneResolution: 0 103 | xboxOneSResolution: 0 104 | xboxOneXResolution: 3 105 | xboxOneMonoLoggingLevel: 0 106 | xboxOneLoggingLevel: 1 107 | xboxOneDisableEsram: 0 108 | xboxOnePresentImmediateThreshold: 0 109 | switchQueueCommandMemory: 0 110 | videoMemoryForVertexBuffers: 0 111 | psp2PowerMode: 0 112 | psp2AcquireBGM: 1 113 | vulkanEnableSetSRGBWrite: 0 114 | vulkanUseSWCommandBuffers: 0 115 | m_SupportedAspectRatios: 116 | 4:3: 1 117 | 5:4: 1 118 | 16:10: 1 119 | 16:9: 1 120 | Others: 1 121 | bundleVersion: 0.1 122 | preloadedAssets: [] 123 | metroInputSource: 0 124 | wsaTransparentSwapchain: 0 125 | m_HolographicPauseOnTrackingLoss: 1 126 | xboxOneDisableKinectGpuReservation: 0 127 | xboxOneEnable7thCore: 0 128 | isWsaHolographicRemotingEnabled: 0 129 | vrSettings: 130 | cardboard: 131 | depthFormat: 0 132 | enableTransitionView: 0 133 | daydream: 134 | depthFormat: 0 135 | useSustainedPerformanceMode: 0 136 | enableVideoLayer: 0 137 | useProtectedVideoMemory: 0 138 | minimumSupportedHeadTracking: 0 139 | maximumSupportedHeadTracking: 1 140 | hololens: 141 | depthFormat: 1 142 | depthBufferSharingEnabled: 0 143 | oculus: 144 | sharedDepthBuffer: 0 145 | dashSupport: 0 146 | enable360StereoCapture: 0 147 | protectGraphicsMemory: 0 148 | useHDRDisplay: 0 149 | m_ColorGamuts: 00000000 150 | targetPixelDensity: 30 151 | resolutionScalingMode: 0 152 | androidSupportedAspectRatio: 1 153 | androidMaxAspectRatio: 2.1 154 | applicationIdentifier: {} 155 | buildNumber: {} 156 | AndroidBundleVersionCode: 1 157 | AndroidMinSdkVersion: 16 158 | AndroidTargetSdkVersion: 0 159 | AndroidPreferredInstallLocation: 1 160 | aotOptions: 161 | stripEngineCode: 1 162 | iPhoneStrippingLevel: 0 163 | iPhoneScriptCallOptimization: 0 164 | ForceInternetPermission: 0 165 | ForceSDCardPermission: 0 166 | CreateWallpaper: 0 167 | APKExpansionFiles: 0 168 | keepLoadedShadersAlive: 0 169 | StripUnusedMeshComponents: 1 170 | VertexChannelCompressionMask: 4054 171 | iPhoneSdkVersion: 988 172 | iOSTargetOSVersionString: 8.0 173 | tvOSSdkVersion: 0 174 | tvOSRequireExtendedGameController: 0 175 | tvOSTargetOSVersionString: 9.0 176 | uIPrerenderedIcon: 0 177 | uIRequiresPersistentWiFi: 0 178 | uIRequiresFullScreen: 1 179 | uIStatusBarHidden: 1 180 | uIExitOnSuspend: 0 181 | uIStatusBarStyle: 0 182 | iPhoneSplashScreen: {fileID: 0} 183 | iPhoneHighResSplashScreen: {fileID: 0} 184 | iPhoneTallHighResSplashScreen: {fileID: 0} 185 | iPhone47inSplashScreen: {fileID: 0} 186 | iPhone55inPortraitSplashScreen: {fileID: 0} 187 | iPhone55inLandscapeSplashScreen: {fileID: 0} 188 | iPhone58inPortraitSplashScreen: {fileID: 0} 189 | iPhone58inLandscapeSplashScreen: {fileID: 0} 190 | iPadPortraitSplashScreen: {fileID: 0} 191 | iPadHighResPortraitSplashScreen: {fileID: 0} 192 | iPadLandscapeSplashScreen: {fileID: 0} 193 | iPadHighResLandscapeSplashScreen: {fileID: 0} 194 | appleTVSplashScreen: {fileID: 0} 195 | appleTVSplashScreen2x: {fileID: 0} 196 | tvOSSmallIconLayers: [] 197 | tvOSSmallIconLayers2x: [] 198 | tvOSLargeIconLayers: [] 199 | tvOSLargeIconLayers2x: [] 200 | tvOSTopShelfImageLayers: [] 201 | tvOSTopShelfImageLayers2x: [] 202 | tvOSTopShelfImageWideLayers: [] 203 | tvOSTopShelfImageWideLayers2x: [] 204 | iOSLaunchScreenType: 0 205 | iOSLaunchScreenPortrait: {fileID: 0} 206 | iOSLaunchScreenLandscape: {fileID: 0} 207 | iOSLaunchScreenBackgroundColor: 208 | serializedVersion: 2 209 | rgba: 0 210 | iOSLaunchScreenFillPct: 100 211 | iOSLaunchScreenSize: 100 212 | iOSLaunchScreenCustomXibPath: 213 | iOSLaunchScreeniPadType: 0 214 | iOSLaunchScreeniPadImage: {fileID: 0} 215 | iOSLaunchScreeniPadBackgroundColor: 216 | serializedVersion: 2 217 | rgba: 0 218 | iOSLaunchScreeniPadFillPct: 100 219 | iOSLaunchScreeniPadSize: 100 220 | iOSLaunchScreeniPadCustomXibPath: 221 | iOSUseLaunchScreenStoryboard: 0 222 | iOSLaunchScreenCustomStoryboardPath: 223 | iOSDeviceRequirements: [] 224 | iOSURLSchemes: [] 225 | iOSBackgroundModes: 0 226 | iOSMetalForceHardShadows: 0 227 | metalEditorSupport: 1 228 | metalAPIValidation: 1 229 | iOSRenderExtraFrameOnPause: 0 230 | appleDeveloperTeamID: 231 | iOSManualSigningProvisioningProfileID: 232 | tvOSManualSigningProvisioningProfileID: 233 | iOSManualSigningProvisioningProfileType: 0 234 | tvOSManualSigningProvisioningProfileType: 0 235 | appleEnableAutomaticSigning: 0 236 | iOSRequireARKit: 0 237 | appleEnableProMotion: 0 238 | vulkanEditorSupport: 0 239 | clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea 240 | templatePackageId: com.unity.3d@1.0.2 241 | templateDefaultScene: Assets/Scenes/SampleScene.unity 242 | AndroidTargetArchitectures: 5 243 | AndroidSplashScreenScale: 0 244 | androidSplashScreen: {fileID: 0} 245 | AndroidKeystoreName: 246 | AndroidKeyaliasName: 247 | AndroidBuildApkPerCpuArchitecture: 0 248 | AndroidTVCompatibility: 1 249 | AndroidIsGame: 1 250 | AndroidEnableTango: 0 251 | androidEnableBanner: 1 252 | androidUseLowAccuracyLocation: 0 253 | m_AndroidBanners: 254 | - width: 320 255 | height: 180 256 | banner: {fileID: 0} 257 | androidGamepadSupportLevel: 0 258 | resolutionDialogBanner: {fileID: 0} 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_BuildTargetGraphicsAPIs: 278 | - m_BuildTarget: AndroidPlayer 279 | m_APIs: 0b00000015000000 280 | m_Automatic: 1 281 | - m_BuildTarget: iOSSupport 282 | m_APIs: 10000000 283 | m_Automatic: 1 284 | - m_BuildTarget: AppleTVSupport 285 | m_APIs: 10000000 286 | m_Automatic: 0 287 | - m_BuildTarget: WebGLSupport 288 | m_APIs: 0b000000 289 | m_Automatic: 1 290 | m_BuildTargetVRSettings: 291 | - m_BuildTarget: Standalone 292 | m_Enabled: 0 293 | m_Devices: 294 | - Oculus 295 | - OpenVR 296 | m_BuildTargetEnableVuforiaSettings: [] 297 | openGLRequireES31: 0 298 | openGLRequireES31AEP: 0 299 | m_TemplateCustomTags: {} 300 | mobileMTRendering: 301 | Android: 1 302 | iPhone: 1 303 | tvOS: 1 304 | m_BuildTargetGroupLightmapEncodingQuality: [] 305 | m_BuildTargetGroupLightmapSettings: [] 306 | playModeTestRunnerEnabled: 0 307 | runPlayModeTestAsEditModeTest: 0 308 | actionOnDotNetUnhandledException: 1 309 | enableInternalProfiler: 0 310 | logObjCUncaughtExceptions: 1 311 | enableCrashReportAPI: 0 312 | cameraUsageDescription: 313 | locationUsageDescription: 314 | microphoneUsageDescription: 315 | switchNetLibKey: 316 | switchSocketMemoryPoolSize: 6144 317 | switchSocketAllocatorPoolSize: 128 318 | switchSocketConcurrencyLimit: 14 319 | switchScreenResolutionBehavior: 2 320 | switchUseCPUProfiler: 0 321 | switchApplicationID: 0x01004b9000490000 322 | switchNSODependencies: 323 | switchTitleNames_0: 324 | switchTitleNames_1: 325 | switchTitleNames_2: 326 | switchTitleNames_3: 327 | switchTitleNames_4: 328 | switchTitleNames_5: 329 | switchTitleNames_6: 330 | switchTitleNames_7: 331 | switchTitleNames_8: 332 | switchTitleNames_9: 333 | switchTitleNames_10: 334 | switchTitleNames_11: 335 | switchTitleNames_12: 336 | switchTitleNames_13: 337 | switchTitleNames_14: 338 | switchPublisherNames_0: 339 | switchPublisherNames_1: 340 | switchPublisherNames_2: 341 | switchPublisherNames_3: 342 | switchPublisherNames_4: 343 | switchPublisherNames_5: 344 | switchPublisherNames_6: 345 | switchPublisherNames_7: 346 | switchPublisherNames_8: 347 | switchPublisherNames_9: 348 | switchPublisherNames_10: 349 | switchPublisherNames_11: 350 | switchPublisherNames_12: 351 | switchPublisherNames_13: 352 | switchPublisherNames_14: 353 | switchIcons_0: {fileID: 0} 354 | switchIcons_1: {fileID: 0} 355 | switchIcons_2: {fileID: 0} 356 | switchIcons_3: {fileID: 0} 357 | switchIcons_4: {fileID: 0} 358 | switchIcons_5: {fileID: 0} 359 | switchIcons_6: {fileID: 0} 360 | switchIcons_7: {fileID: 0} 361 | switchIcons_8: {fileID: 0} 362 | switchIcons_9: {fileID: 0} 363 | switchIcons_10: {fileID: 0} 364 | switchIcons_11: {fileID: 0} 365 | switchIcons_12: {fileID: 0} 366 | switchIcons_13: {fileID: 0} 367 | switchIcons_14: {fileID: 0} 368 | switchSmallIcons_0: {fileID: 0} 369 | switchSmallIcons_1: {fileID: 0} 370 | switchSmallIcons_2: {fileID: 0} 371 | switchSmallIcons_3: {fileID: 0} 372 | switchSmallIcons_4: {fileID: 0} 373 | switchSmallIcons_5: {fileID: 0} 374 | switchSmallIcons_6: {fileID: 0} 375 | switchSmallIcons_7: {fileID: 0} 376 | switchSmallIcons_8: {fileID: 0} 377 | switchSmallIcons_9: {fileID: 0} 378 | switchSmallIcons_10: {fileID: 0} 379 | switchSmallIcons_11: {fileID: 0} 380 | switchSmallIcons_12: {fileID: 0} 381 | switchSmallIcons_13: {fileID: 0} 382 | switchSmallIcons_14: {fileID: 0} 383 | switchManualHTML: 384 | switchAccessibleURLs: 385 | switchLegalInformation: 386 | switchMainThreadStackSize: 1048576 387 | switchPresenceGroupId: 388 | switchLogoHandling: 0 389 | switchReleaseVersion: 0 390 | switchDisplayVersion: 1.0.0 391 | switchStartupUserAccount: 0 392 | switchTouchScreenUsage: 0 393 | switchSupportedLanguagesMask: 0 394 | switchLogoType: 0 395 | switchApplicationErrorCodeCategory: 396 | switchUserAccountSaveDataSize: 0 397 | switchUserAccountSaveDataJournalSize: 0 398 | switchApplicationAttribute: 0 399 | switchCardSpecSize: -1 400 | switchCardSpecClock: -1 401 | switchRatingsMask: 0 402 | switchRatingsInt_0: 0 403 | switchRatingsInt_1: 0 404 | switchRatingsInt_2: 0 405 | switchRatingsInt_3: 0 406 | switchRatingsInt_4: 0 407 | switchRatingsInt_5: 0 408 | switchRatingsInt_6: 0 409 | switchRatingsInt_7: 0 410 | switchRatingsInt_8: 0 411 | switchRatingsInt_9: 0 412 | switchRatingsInt_10: 0 413 | switchRatingsInt_11: 0 414 | switchLocalCommunicationIds_0: 415 | switchLocalCommunicationIds_1: 416 | switchLocalCommunicationIds_2: 417 | switchLocalCommunicationIds_3: 418 | switchLocalCommunicationIds_4: 419 | switchLocalCommunicationIds_5: 420 | switchLocalCommunicationIds_6: 421 | switchLocalCommunicationIds_7: 422 | switchParentalControl: 0 423 | switchAllowsScreenshot: 1 424 | switchAllowsVideoCapturing: 1 425 | switchAllowsRuntimeAddOnContentInstall: 0 426 | switchDataLossConfirmation: 0 427 | switchSupportedNpadStyles: 3 428 | switchNativeFsCacheSize: 32 429 | switchIsHoldTypeHorizontal: 0 430 | switchSupportedNpadCount: 8 431 | switchSocketConfigEnabled: 0 432 | switchTcpInitialSendBufferSize: 32 433 | switchTcpInitialReceiveBufferSize: 64 434 | switchTcpAutoSendBufferSizeMax: 256 435 | switchTcpAutoReceiveBufferSizeMax: 256 436 | switchUdpSendBufferSize: 9 437 | switchUdpReceiveBufferSize: 42 438 | switchSocketBufferEfficiency: 4 439 | switchSocketInitializeEnabled: 1 440 | switchNetworkInterfaceManagerInitializeEnabled: 1 441 | switchPlayerConnectionEnabled: 1 442 | ps4NPAgeRating: 12 443 | ps4NPTitleSecret: 444 | ps4NPTrophyPackPath: 445 | ps4ParentalLevel: 11 446 | ps4ContentID: ED1633-NPXX51362_00-0000000000000000 447 | ps4Category: 0 448 | ps4MasterVersion: 01.00 449 | ps4AppVersion: 01.00 450 | ps4AppType: 0 451 | ps4ParamSfxPath: 452 | ps4VideoOutPixelFormat: 0 453 | ps4VideoOutInitialWidth: 1920 454 | ps4VideoOutBaseModeInitialWidth: 1920 455 | ps4VideoOutReprojectionRate: 60 456 | ps4PronunciationXMLPath: 457 | ps4PronunciationSIGPath: 458 | ps4BackgroundImagePath: 459 | ps4StartupImagePath: 460 | ps4StartupImagesFolder: 461 | ps4IconImagesFolder: 462 | ps4SaveDataImagePath: 463 | ps4SdkOverride: 464 | ps4BGMPath: 465 | ps4ShareFilePath: 466 | ps4ShareOverlayImagePath: 467 | ps4PrivacyGuardImagePath: 468 | ps4NPtitleDatPath: 469 | ps4RemotePlayKeyAssignment: -1 470 | ps4RemotePlayKeyMappingDir: 471 | ps4PlayTogetherPlayerCount: 0 472 | ps4EnterButtonAssignment: 1 473 | ps4ApplicationParam1: 0 474 | ps4ApplicationParam2: 0 475 | ps4ApplicationParam3: 0 476 | ps4ApplicationParam4: 0 477 | ps4DownloadDataSize: 0 478 | ps4GarlicHeapSize: 2048 479 | ps4ProGarlicHeapSize: 2560 480 | ps4Passcode: frAQBc8Wsa1xVPfvJcrgRYwTiizs2trQ 481 | ps4pnSessions: 1 482 | ps4pnPresence: 1 483 | ps4pnFriends: 1 484 | ps4pnGameCustomData: 1 485 | playerPrefsSupport: 0 486 | enableApplicationExit: 0 487 | restrictedAudioUsageRights: 0 488 | ps4UseResolutionFallback: 0 489 | ps4ReprojectionSupport: 0 490 | ps4UseAudio3dBackend: 0 491 | ps4SocialScreenEnabled: 0 492 | ps4ScriptOptimizationLevel: 0 493 | ps4Audio3dVirtualSpeakerCount: 14 494 | ps4attribCpuUsage: 0 495 | ps4PatchPkgPath: 496 | ps4PatchLatestPkgPath: 497 | ps4PatchChangeinfoPath: 498 | ps4PatchDayOne: 0 499 | ps4attribUserManagement: 0 500 | ps4attribMoveSupport: 0 501 | ps4attrib3DSupport: 0 502 | ps4attribShareSupport: 0 503 | ps4attribExclusiveVR: 0 504 | ps4disableAutoHideSplash: 0 505 | ps4videoRecordingFeaturesUsed: 0 506 | ps4contentSearchFeaturesUsed: 0 507 | ps4attribEyeToEyeDistanceSettingVR: 0 508 | ps4IncludedModules: [] 509 | monoEnv: 510 | psp2Splashimage: {fileID: 0} 511 | psp2NPTrophyPackPath: 512 | psp2NPSupportGBMorGJP: 0 513 | psp2NPAgeRating: 12 514 | psp2NPTitleDatPath: 515 | psp2NPCommsID: 516 | psp2NPCommunicationsID: 517 | psp2NPCommsPassphrase: 518 | psp2NPCommsSig: 519 | psp2ParamSfxPath: 520 | psp2ManualPath: 521 | psp2LiveAreaGatePath: 522 | psp2LiveAreaBackroundPath: 523 | psp2LiveAreaPath: 524 | psp2LiveAreaTrialPath: 525 | psp2PatchChangeInfoPath: 526 | psp2PatchOriginalPackage: 527 | psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui 528 | psp2KeystoneFile: 529 | psp2MemoryExpansionMode: 0 530 | psp2DRMType: 0 531 | psp2StorageType: 0 532 | psp2MediaCapacity: 0 533 | psp2DLCConfigPath: 534 | psp2ThumbnailPath: 535 | psp2BackgroundPath: 536 | psp2SoundPath: 537 | psp2TrophyCommId: 538 | psp2TrophyPackagePath: 539 | psp2PackagedResourcesPath: 540 | psp2SaveDataQuota: 10240 541 | psp2ParentalLevel: 1 542 | psp2ShortTitle: Not Set 543 | psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF 544 | psp2Category: 0 545 | psp2MasterVersion: 01.00 546 | psp2AppVersion: 01.00 547 | psp2TVBootMode: 0 548 | psp2EnterButtonAssignment: 2 549 | psp2TVDisableEmu: 0 550 | psp2AllowTwitterDialog: 1 551 | psp2Upgradable: 0 552 | psp2HealthWarning: 0 553 | psp2UseLibLocation: 0 554 | psp2InfoBarOnStartup: 0 555 | psp2InfoBarColor: 0 556 | psp2ScriptOptimizationLevel: 0 557 | splashScreenBackgroundSourceLandscape: {fileID: 0} 558 | splashScreenBackgroundSourcePortrait: {fileID: 0} 559 | spritePackerPolicy: 560 | webGLMemorySize: 256 561 | webGLExceptionSupport: 1 562 | webGLNameFilesAsHashes: 0 563 | webGLDataCaching: 1 564 | webGLDebugSymbols: 0 565 | webGLEmscriptenArgs: 566 | webGLModulesDirectory: 567 | webGLTemplate: APPLICATION:Default 568 | webGLAnalyzeBuildSize: 0 569 | webGLUseEmbeddedResources: 0 570 | webGLCompressionFormat: 1 571 | webGLLinkerTarget: 1 572 | scriptingDefineSymbols: {} 573 | platformArchitecture: {} 574 | scriptingBackend: {} 575 | il2cppCompilerConfiguration: {} 576 | incrementalIl2cppBuild: {} 577 | allowUnsafeCode: 0 578 | additionalIl2CppArgs: 579 | scriptingRuntimeVersion: 0 580 | apiCompatibilityLevelPerPlatform: {} 581 | m_RenderingPath: 1 582 | m_MobileRenderingPath: 1 583 | metroPackageName: Template_3D 584 | metroPackageVersion: 585 | metroCertificatePath: 586 | metroCertificatePassword: 587 | metroCertificateSubject: 588 | metroCertificateIssuer: 589 | metroCertificateNotAfter: 0000000000000000 590 | metroApplicationDescription: Template_3D 591 | wsaImages: {} 592 | metroTileShortName: 593 | metroTileShowName: 0 594 | metroMediumTileShowName: 0 595 | metroLargeTileShowName: 0 596 | metroWideTileShowName: 0 597 | metroDefaultTileSize: 1 598 | metroTileForegroundText: 2 599 | metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} 600 | metroSplashScreenBackgroundColor: {r: 0.12941177, g: 0.17254902, b: 0.21568628, 601 | a: 1} 602 | metroSplashScreenUseBackgroundColor: 0 603 | platformCapabilities: {} 604 | metroFTAName: 605 | metroFTAFileTypes: [] 606 | metroProtocolName: 607 | metroCompilationOverrides: 1 608 | n3dsUseExtSaveData: 0 609 | n3dsCompressStaticMem: 1 610 | n3dsExtSaveDataNumber: 0x12345 611 | n3dsStackSize: 131072 612 | n3dsTargetPlatform: 2 613 | n3dsRegion: 7 614 | n3dsMediaSize: 0 615 | n3dsLogoStyle: 3 616 | n3dsTitle: GameName 617 | n3dsProductCode: 618 | n3dsApplicationId: 0xFF3FF 619 | XboxOneProductId: 620 | XboxOneUpdateKey: 621 | XboxOneSandboxId: 622 | XboxOneContentId: 623 | XboxOneTitleId: 624 | XboxOneSCId: 625 | XboxOneGameOsOverridePath: 626 | XboxOnePackagingOverridePath: 627 | XboxOneAppManifestOverridePath: 628 | XboxOneVersion: 1.0.0.0 629 | XboxOnePackageEncryption: 0 630 | XboxOnePackageUpdateGranularity: 2 631 | XboxOneDescription: 632 | XboxOneLanguage: 633 | - enus 634 | XboxOneCapability: [] 635 | XboxOneGameRating: {} 636 | XboxOneIsContentPackage: 0 637 | XboxOneEnableGPUVariability: 0 638 | XboxOneSockets: {} 639 | XboxOneSplashScreen: {fileID: 0} 640 | XboxOneAllowedProductIds: [] 641 | XboxOnePersistentLocalStorageSize: 0 642 | XboxOneXTitleMemory: 8 643 | xboxOneScriptCompiler: 0 644 | vrEditorSettings: 645 | daydream: 646 | daydreamIconForeground: {fileID: 0} 647 | daydreamIconBackground: {fileID: 0} 648 | cloudServicesEnabled: 649 | UNet: 1 650 | facebookSdkVersion: 7.9.4 651 | apiCompatibilityLevel: 2 652 | cloudProjectId: 653 | projectName: 654 | organizationId: 655 | cloudEnabled: 0 656 | enableNativePlatformBackendsForNewInputSystem: 0 657 | disableOldInputManagerSupport: 0 658 | -------------------------------------------------------------------------------- /Assets/Utils/FastGizmos/Editor/FastGizmosEditor.cs: -------------------------------------------------------------------------------- 1 | //FastGizmos Tool by SVerde 2 | //contact@sverdegd.com 3 | //https://github.com/sverdegd 4 | 5 | using UnityEngine; 6 | using UnityEditor; 7 | 8 | namespace SVerdeTools.FastGizmos 9 | { 10 | [CustomEditor(typeof(FastGizmos))] 11 | public class FastGizmosEditor : Editor 12 | { 13 | int typeIndex = 0; 14 | Color color; 15 | bool active; 16 | 17 | //Cube 18 | bool positionIsCenterCube; 19 | Vector3 cubeCenter; 20 | Vector3 cubeSize; 21 | //Frustrum 22 | bool positionIsCenterFrustum; 23 | Vector3 frustumCenter; 24 | float fov; 25 | float maxRange; 26 | float minRange; 27 | float aspect; 28 | //GUITexture 29 | Rect screenRect; 30 | Texture texture; 31 | Material mat; 32 | //Icon 33 | bool positionIsCenterIcon; 34 | Vector3 iconCenter; 35 | string iconName; 36 | bool allowScaling; 37 | //Line 38 | bool useTwoTransforms; 39 | Vector3 fromV; 40 | Vector3 toV; 41 | Transform fromTr; 42 | Transform toTr; 43 | //Mesh 44 | Mesh mesh; 45 | bool transformIsMeshTransform; 46 | Vector3 meshPosition; 47 | Vector3 meshRotation; 48 | Vector3 meshScale; 49 | int subMeshIndex; 50 | //Ray 51 | Vector3 fromR; 52 | Vector3 directionR; 53 | //Sphere 54 | bool positionIsCenterSphere = true; 55 | Vector3 sphereCenter; 56 | float radiusS; 57 | //WireCube 58 | bool positionIsCenterWireCube = true; 59 | Vector3 wireCubeCenter = Vector3.zero; 60 | Vector3 wireCubeSize = Vector3.one; 61 | //WireMesh 62 | Mesh wireMesh; 63 | bool transformIsWireMeshTransform = true; 64 | Vector3 wireMeshPosition; 65 | Vector3 wireMeshRotation; 66 | Vector3 wireMeshScale = Vector3.one; 67 | int subWireMeshIndex = -1; 68 | //Sphere 69 | bool positionIsCenterWireSphere = true; 70 | Vector3 wireSphereCenter = Vector3.zero; 71 | float radiusWS = 1f; 72 | //CameraOrthographic 73 | Camera cam; 74 | bool drawVertex = false; 75 | //LineExtended 76 | Vector3 startPointLE; 77 | Vector3 endPointLE; 78 | Transform fromTrLE; 79 | Transform toTrLE; 80 | float thickness; 81 | bool useTwoTransformsLE; 82 | //CubeExtended 83 | Vector3 positionCE; 84 | Vector3 rotationCE; 85 | Vector3 scaleCE; 86 | //WireCubeExtended 87 | Vector3 positionWCE = Vector3.zero; 88 | Vector3 rotationWCE = Vector3.zero; 89 | Vector3 scaleWCE = Vector3.one; 90 | 91 | public override void OnInspectorGUI() 92 | { 93 | FastGizmos myTarget = (FastGizmos)target; 94 | 95 | EditorGUILayout.Separator(); 96 | EditorGUI.BeginChangeCheck(); 97 | active = EditorGUILayout.ToggleLeft("Enable", myTarget.active, EditorStyles.largeLabel); 98 | if (EditorGUI.EndChangeCheck()) 99 | { 100 | EditorUtility.SetDirty(myTarget); 101 | myTarget.active = active; 102 | } 103 | EditorGUILayout.Separator(); 104 | 105 | if (active) 106 | { 107 | EditorGUI.BeginChangeCheck(); 108 | typeIndex = EditorGUILayout.Popup(myTarget.GetTypeIndex(), FastGizmos.Type); 109 | if (EditorGUI.EndChangeCheck()) 110 | { 111 | EditorUtility.SetDirty(myTarget); 112 | myTarget.type = FastGizmos.Type[typeIndex]; 113 | } 114 | 115 | EditorGUI.BeginChangeCheck(); 116 | color = EditorGUILayout.ColorField(myTarget.color); 117 | if (EditorGUI.EndChangeCheck()) 118 | { 119 | EditorUtility.SetDirty(myTarget); 120 | myTarget.color = color; 121 | } 122 | 123 | EditorGUILayout.BeginVertical("box"); 124 | 125 | switch (typeIndex) 126 | { 127 | case 0://Cube 128 | #region Cube 129 | EditorGUI.BeginChangeCheck(); 130 | positionIsCenterCube = EditorGUILayout.ToggleLeft("Position is the center", myTarget.positionIsCenterCube); 131 | if (EditorGUI.EndChangeCheck()) 132 | { 133 | EditorUtility.SetDirty(myTarget); 134 | myTarget.positionIsCenterCube = positionIsCenterCube; 135 | } 136 | if (!positionIsCenterCube) 137 | { 138 | EditorGUI.BeginChangeCheck(); 139 | cubeCenter = EditorGUILayout.Vector3Field("Center", myTarget.cubeCenter); 140 | if (EditorGUI.EndChangeCheck()) 141 | { 142 | EditorUtility.SetDirty(myTarget); 143 | myTarget.cubeCenter = cubeCenter; 144 | } 145 | } 146 | EditorGUI.BeginChangeCheck(); 147 | cubeSize = EditorGUILayout.Vector3Field("Size", myTarget.cubeSize); 148 | if (EditorGUI.EndChangeCheck()) 149 | { 150 | EditorUtility.SetDirty(myTarget); 151 | myTarget.cubeSize = cubeSize; 152 | } 153 | #endregion 154 | break; 155 | case 1://Frustrum 156 | #region Frustrum 157 | EditorGUI.BeginChangeCheck(); 158 | positionIsCenterFrustum = EditorGUILayout.ToggleLeft("Position is the center", myTarget.positionIsCenterFrustum); 159 | if (EditorGUI.EndChangeCheck()) 160 | { 161 | EditorUtility.SetDirty(myTarget); 162 | myTarget.positionIsCenterFrustum = positionIsCenterFrustum; 163 | } 164 | if (!positionIsCenterFrustum) 165 | { 166 | EditorGUI.BeginChangeCheck(); 167 | frustumCenter = EditorGUILayout.Vector3Field("Center", myTarget.frustumCenter); 168 | if (EditorGUI.EndChangeCheck()) 169 | { 170 | EditorUtility.SetDirty(myTarget); 171 | myTarget.frustumCenter = frustumCenter; 172 | } 173 | } 174 | EditorGUI.BeginChangeCheck(); 175 | fov = EditorGUILayout.FloatField("Fov", myTarget.fov); 176 | if (EditorGUI.EndChangeCheck()) 177 | { 178 | EditorUtility.SetDirty(myTarget); 179 | myTarget.fov = fov; 180 | } 181 | EditorGUI.BeginChangeCheck(); 182 | minRange = EditorGUILayout.FloatField("Min Range", myTarget.minRange); 183 | if (EditorGUI.EndChangeCheck()) 184 | { 185 | EditorUtility.SetDirty(myTarget); 186 | myTarget.minRange = minRange; 187 | } 188 | EditorGUI.BeginChangeCheck(); 189 | maxRange = EditorGUILayout.FloatField("Max Range", myTarget.maxRange); 190 | if (EditorGUI.EndChangeCheck()) 191 | { 192 | EditorUtility.SetDirty(myTarget); 193 | myTarget.maxRange = maxRange; 194 | } 195 | EditorGUI.BeginChangeCheck(); 196 | aspect = EditorGUILayout.FloatField("Aspect", myTarget.aspect); 197 | if (EditorGUI.EndChangeCheck()) 198 | { 199 | EditorUtility.SetDirty(myTarget); 200 | myTarget.aspect = aspect; 201 | } 202 | #endregion 203 | break; 204 | case 2://GUITexture 205 | #region GUITexture 206 | EditorGUI.BeginChangeCheck(); 207 | screenRect = EditorGUILayout.RectField("Screen Rect", myTarget.screenRect); 208 | if (EditorGUI.EndChangeCheck()) 209 | { 210 | EditorUtility.SetDirty(myTarget); 211 | myTarget.screenRect = screenRect; 212 | } 213 | EditorGUI.BeginChangeCheck(); 214 | texture = (Texture)EditorGUILayout.ObjectField("Texture", myTarget.texture, typeof(Texture), false); 215 | if (EditorGUI.EndChangeCheck()) 216 | { 217 | EditorUtility.SetDirty(myTarget); 218 | myTarget.texture = texture; 219 | } 220 | EditorGUI.BeginChangeCheck(); 221 | mat = (Material)EditorGUILayout.ObjectField("Material", myTarget.mat, typeof(Material), false); 222 | if (EditorGUI.EndChangeCheck()) 223 | { 224 | EditorUtility.SetDirty(myTarget); 225 | myTarget.mat = mat; 226 | } 227 | #endregion 228 | break; 229 | case 3://Icon 230 | #region Icon 231 | EditorGUI.BeginChangeCheck(); 232 | positionIsCenterIcon = EditorGUILayout.ToggleLeft("Position is the center", myTarget.positionIsCenterIcon); 233 | if (EditorGUI.EndChangeCheck()) 234 | { 235 | EditorUtility.SetDirty(myTarget); 236 | myTarget.positionIsCenterIcon = positionIsCenterIcon; 237 | } 238 | if (!positionIsCenterIcon) 239 | { 240 | EditorGUI.BeginChangeCheck(); 241 | iconCenter = EditorGUILayout.Vector3Field("Center", myTarget.iconCenter); 242 | if (EditorGUI.EndChangeCheck()) 243 | { 244 | EditorUtility.SetDirty(myTarget); 245 | myTarget.iconCenter = iconCenter; 246 | } 247 | } 248 | EditorGUI.BeginChangeCheck(); 249 | iconName = EditorGUILayout.TextField("Icon name", myTarget.iconName); 250 | if (EditorGUI.EndChangeCheck()) 251 | { 252 | EditorUtility.SetDirty(myTarget); 253 | myTarget.iconName = iconName; 254 | } 255 | EditorGUI.BeginChangeCheck(); 256 | allowScaling = EditorGUILayout.ToggleLeft("Allow scaling", myTarget.allowScaling); 257 | if (EditorGUI.EndChangeCheck()) 258 | { 259 | EditorUtility.SetDirty(myTarget); 260 | myTarget.allowScaling = allowScaling; 261 | } 262 | #endregion 263 | break; 264 | case 4://Line 265 | #region Line 266 | EditorGUI.BeginChangeCheck(); 267 | useTwoTransforms = EditorGUILayout.ToggleLeft("Use two transforms", myTarget.useTwoTransforms); 268 | if (EditorGUI.EndChangeCheck()) 269 | { 270 | EditorUtility.SetDirty(myTarget); 271 | myTarget.useTwoTransforms = useTwoTransforms; 272 | } 273 | if (!useTwoTransforms) 274 | { 275 | EditorGUI.BeginChangeCheck(); 276 | fromV = EditorGUILayout.Vector3Field("From", myTarget.fromV); 277 | if (EditorGUI.EndChangeCheck()) 278 | { 279 | EditorUtility.SetDirty(myTarget); 280 | myTarget.fromV = fromV; 281 | } 282 | EditorGUI.BeginChangeCheck(); 283 | toV = EditorGUILayout.Vector3Field("To", myTarget.toV); 284 | if (EditorGUI.EndChangeCheck()) 285 | { 286 | EditorUtility.SetDirty(myTarget); 287 | myTarget.toV = toV; 288 | } 289 | } 290 | else 291 | { 292 | EditorGUI.BeginChangeCheck(); 293 | fromTr = EditorGUILayout.ObjectField("From", myTarget.fromTr, typeof(Transform), true) as Transform; 294 | if (EditorGUI.EndChangeCheck()) 295 | { 296 | EditorUtility.SetDirty(myTarget); 297 | myTarget.fromTr = fromTr; 298 | } 299 | EditorGUI.BeginChangeCheck(); 300 | toTr = EditorGUILayout.ObjectField("To", myTarget.toTr, typeof(Transform), true) as Transform; 301 | if (EditorGUI.EndChangeCheck()) 302 | { 303 | EditorUtility.SetDirty(myTarget); 304 | myTarget.toTr = toTr; 305 | } 306 | } 307 | #endregion 308 | break; 309 | case 5://Mesh 310 | #region Mesh 311 | EditorGUI.BeginChangeCheck(); 312 | mesh = EditorGUILayout.ObjectField("Mesh", myTarget.mesh, typeof(Mesh), true) as Mesh; 313 | if (EditorGUI.EndChangeCheck()) 314 | { 315 | EditorUtility.SetDirty(myTarget); 316 | myTarget.mesh = mesh; 317 | } 318 | EditorGUI.BeginChangeCheck(); 319 | transformIsMeshTransform = EditorGUILayout.ToggleLeft("Transform is Mesh Transform", myTarget.transformIsMeshTransform); 320 | if (EditorGUI.EndChangeCheck()) 321 | { 322 | EditorUtility.SetDirty(myTarget); 323 | myTarget.transformIsMeshTransform = transformIsMeshTransform; 324 | } 325 | if (!transformIsMeshTransform) 326 | { 327 | EditorGUI.BeginChangeCheck(); 328 | meshPosition = EditorGUILayout.Vector3Field("Position", myTarget.meshPosition); 329 | if (EditorGUI.EndChangeCheck()) 330 | { 331 | EditorUtility.SetDirty(myTarget); 332 | myTarget.meshPosition = meshPosition; 333 | } 334 | EditorGUI.BeginChangeCheck(); 335 | meshRotation = EditorGUILayout.Vector3Field("Rotation", myTarget.meshRotation); 336 | if (EditorGUI.EndChangeCheck()) 337 | { 338 | EditorUtility.SetDirty(myTarget); 339 | myTarget.meshRotation = meshRotation; 340 | } 341 | EditorGUI.BeginChangeCheck(); 342 | meshScale = EditorGUILayout.Vector3Field("Scale", myTarget.meshScale); 343 | if (EditorGUI.EndChangeCheck()) 344 | { 345 | EditorUtility.SetDirty(myTarget); 346 | myTarget.meshScale = meshScale; 347 | } 348 | } 349 | EditorGUI.BeginChangeCheck(); 350 | subMeshIndex = EditorGUILayout.IntField("Sub Mesh index", myTarget.subMeshIndex); 351 | if (EditorGUI.EndChangeCheck()) 352 | { 353 | EditorUtility.SetDirty(myTarget); 354 | myTarget.subMeshIndex = subMeshIndex; 355 | } 356 | #endregion 357 | break; 358 | case 6://Ray 359 | #region Ray 360 | EditorGUI.BeginChangeCheck(); 361 | fromR = EditorGUILayout.Vector3Field("From", myTarget.fromR); 362 | if (EditorGUI.EndChangeCheck()) 363 | { 364 | EditorUtility.SetDirty(myTarget); 365 | myTarget.fromR = fromR; 366 | } 367 | EditorGUI.BeginChangeCheck(); 368 | directionR = EditorGUILayout.Vector3Field("Direction", myTarget.directionR); 369 | if (EditorGUI.EndChangeCheck()) 370 | { 371 | EditorUtility.SetDirty(myTarget); 372 | myTarget.directionR = directionR; 373 | } 374 | #endregion 375 | break; 376 | case 7://Sphere 377 | #region Sphere 378 | EditorGUI.BeginChangeCheck(); 379 | positionIsCenterSphere = EditorGUILayout.ToggleLeft("Position is the center", myTarget.positionIsCenterSphere); 380 | if (EditorGUI.EndChangeCheck()) 381 | { 382 | EditorUtility.SetDirty(myTarget); 383 | myTarget.positionIsCenterSphere = positionIsCenterSphere; 384 | } 385 | if (!positionIsCenterSphere) 386 | { 387 | EditorGUI.BeginChangeCheck(); 388 | sphereCenter = EditorGUILayout.Vector3Field("Center", myTarget.sphereCenter); 389 | if (EditorGUI.EndChangeCheck()) 390 | { 391 | EditorUtility.SetDirty(myTarget); 392 | myTarget.sphereCenter = sphereCenter; 393 | } 394 | } 395 | EditorGUI.BeginChangeCheck(); 396 | radiusS = EditorGUILayout.FloatField("Radius", myTarget.radiusS); 397 | if (EditorGUI.EndChangeCheck()) 398 | { 399 | EditorUtility.SetDirty(myTarget); 400 | myTarget.radiusS = radiusS; 401 | } 402 | #endregion 403 | break; 404 | case 8://WireCube 405 | #region Cube 406 | EditorGUI.BeginChangeCheck(); 407 | positionIsCenterWireCube = EditorGUILayout.ToggleLeft("Position is the center", myTarget.positionIsCenterWireCube); 408 | if (EditorGUI.EndChangeCheck()) 409 | { 410 | EditorUtility.SetDirty(myTarget); 411 | myTarget.positionIsCenterWireCube = positionIsCenterWireCube; 412 | } 413 | if (!positionIsCenterWireCube) 414 | { 415 | EditorGUI.BeginChangeCheck(); 416 | wireCubeCenter = EditorGUILayout.Vector3Field("Center", myTarget.wireCubeCenter); 417 | if (EditorGUI.EndChangeCheck()) 418 | { 419 | EditorUtility.SetDirty(myTarget); 420 | myTarget.wireCubeCenter = wireCubeCenter; 421 | } 422 | } 423 | EditorGUI.BeginChangeCheck(); 424 | wireCubeSize = EditorGUILayout.Vector3Field("Size", myTarget.wireCubeSize); 425 | if (EditorGUI.EndChangeCheck()) 426 | { 427 | EditorUtility.SetDirty(myTarget); 428 | myTarget.wireCubeSize = wireCubeSize; 429 | } 430 | #endregion 431 | break; 432 | case 9://WireMesh 433 | #region WireMesh 434 | EditorGUI.BeginChangeCheck(); 435 | wireMesh = EditorGUILayout.ObjectField("Mesh", myTarget.wireMesh, typeof(Mesh), true) as Mesh; 436 | if (EditorGUI.EndChangeCheck()) 437 | { 438 | EditorUtility.SetDirty(myTarget); 439 | myTarget.wireMesh = wireMesh; 440 | } 441 | EditorGUI.BeginChangeCheck(); 442 | transformIsWireMeshTransform = EditorGUILayout.ToggleLeft("Transform is Mesh Transform", myTarget.transformIsWireMeshTransform); 443 | if (EditorGUI.EndChangeCheck()) 444 | { 445 | EditorUtility.SetDirty(myTarget); 446 | myTarget.transformIsWireMeshTransform = transformIsWireMeshTransform; 447 | } 448 | if (!transformIsWireMeshTransform) 449 | { 450 | EditorGUI.BeginChangeCheck(); 451 | wireMeshPosition = EditorGUILayout.Vector3Field("Position", myTarget.wireMeshPosition); 452 | if (EditorGUI.EndChangeCheck()) 453 | { 454 | EditorUtility.SetDirty(myTarget); 455 | myTarget.wireMeshPosition = wireMeshPosition; 456 | } 457 | EditorGUI.BeginChangeCheck(); 458 | wireMeshRotation = EditorGUILayout.Vector3Field("Rotation", myTarget.wireMeshRotation); 459 | if (EditorGUI.EndChangeCheck()) 460 | { 461 | EditorUtility.SetDirty(myTarget); 462 | myTarget.wireMeshRotation = wireMeshRotation; 463 | } 464 | EditorGUI.BeginChangeCheck(); 465 | wireMeshScale = EditorGUILayout.Vector3Field("Scale", myTarget.wireMeshScale); 466 | if (EditorGUI.EndChangeCheck()) 467 | { 468 | EditorUtility.SetDirty(myTarget); 469 | myTarget.wireMeshScale = wireMeshScale; 470 | } 471 | } 472 | EditorGUI.BeginChangeCheck(); 473 | subWireMeshIndex = EditorGUILayout.IntField("Sub Mesh index", myTarget.subWireMeshIndex); 474 | if (EditorGUI.EndChangeCheck()) 475 | { 476 | EditorUtility.SetDirty(myTarget); 477 | myTarget.subWireMeshIndex = subWireMeshIndex; 478 | } 479 | #endregion 480 | break; 481 | case 10://WireSphere 482 | #region WireSphere 483 | EditorGUI.BeginChangeCheck(); 484 | positionIsCenterWireSphere = EditorGUILayout.ToggleLeft("Position is the center", myTarget.positionIsCenterWireSphere); 485 | if (EditorGUI.EndChangeCheck()) 486 | { 487 | EditorUtility.SetDirty(myTarget); 488 | myTarget.positionIsCenterWireSphere = positionIsCenterWireSphere; 489 | } 490 | if (!positionIsCenterWireSphere) 491 | { 492 | EditorGUI.BeginChangeCheck(); 493 | wireSphereCenter = EditorGUILayout.Vector3Field("Center", myTarget.wireSphereCenter); 494 | if (EditorGUI.EndChangeCheck()) 495 | { 496 | EditorUtility.SetDirty(myTarget); 497 | myTarget.wireSphereCenter = wireSphereCenter; 498 | } 499 | } 500 | EditorGUI.BeginChangeCheck(); 501 | radiusWS = EditorGUILayout.FloatField("Radius", myTarget.radiusWS); 502 | if (EditorGUI.EndChangeCheck()) 503 | { 504 | EditorUtility.SetDirty(myTarget); 505 | myTarget.radiusWS = radiusWS; 506 | } 507 | #endregion 508 | break; 509 | case 11://CameraOrthographic 510 | #region CameraOrthographic 511 | EditorGUI.BeginChangeCheck(); 512 | cam = EditorGUILayout.ObjectField("Camera", myTarget.cam, typeof(Camera), true) as Camera; 513 | if (EditorGUI.EndChangeCheck()) 514 | { 515 | EditorUtility.SetDirty(myTarget); 516 | myTarget.cam = cam; 517 | } 518 | EditorGUI.BeginChangeCheck(); 519 | drawVertex = EditorGUILayout.ToggleLeft("Draw Vertex", myTarget.drawVertex); 520 | if (EditorGUI.EndChangeCheck()) 521 | { 522 | EditorUtility.SetDirty(myTarget); 523 | myTarget.drawVertex = drawVertex; 524 | } 525 | #endregion 526 | break; 527 | case 12://LineExtended 528 | #region LineExtended 529 | EditorGUI.BeginChangeCheck(); 530 | useTwoTransformsLE = EditorGUILayout.ToggleLeft("Use two transforms", myTarget.useTwoTransformsLE); 531 | if (EditorGUI.EndChangeCheck()) 532 | { 533 | EditorUtility.SetDirty(myTarget); 534 | myTarget.useTwoTransformsLE = useTwoTransformsLE; 535 | } 536 | if (!useTwoTransformsLE) 537 | { 538 | EditorGUI.BeginChangeCheck(); 539 | startPointLE = EditorGUILayout.Vector3Field("From", myTarget.startPointLE); 540 | if (EditorGUI.EndChangeCheck()) 541 | { 542 | EditorUtility.SetDirty(myTarget); 543 | myTarget.startPointLE = startPointLE; 544 | } 545 | EditorGUI.BeginChangeCheck(); 546 | endPointLE = EditorGUILayout.Vector3Field("To", myTarget.endPointLE); 547 | if (EditorGUI.EndChangeCheck()) 548 | { 549 | EditorUtility.SetDirty(myTarget); 550 | myTarget.endPointLE = endPointLE; 551 | } 552 | } 553 | else 554 | { 555 | EditorGUI.BeginChangeCheck(); 556 | fromTrLE = EditorGUILayout.ObjectField("From", myTarget.fromTrLE, typeof(Transform), true) as Transform; 557 | if (EditorGUI.EndChangeCheck()) 558 | { 559 | EditorUtility.SetDirty(myTarget); 560 | myTarget.fromTrLE = fromTrLE; 561 | } 562 | EditorGUI.BeginChangeCheck(); 563 | toTrLE = EditorGUILayout.ObjectField("To", myTarget.toTrLE, typeof(Transform), true) as Transform; 564 | if (EditorGUI.EndChangeCheck()) 565 | { 566 | EditorUtility.SetDirty(myTarget); 567 | myTarget.toTrLE = toTrLE; 568 | } 569 | } 570 | EditorGUI.BeginChangeCheck(); 571 | thickness = EditorGUILayout.FloatField("Thickness", myTarget.thickness); 572 | if (EditorGUI.EndChangeCheck()) 573 | { 574 | EditorUtility.SetDirty(myTarget); 575 | myTarget.thickness = thickness; 576 | } 577 | #endregion 578 | break; 579 | case 13://CubeExtended 580 | #region CubeExtended 581 | EditorGUI.BeginChangeCheck(); 582 | positionCE = EditorGUILayout.Vector3Field("Position", myTarget.positionCE); 583 | if (EditorGUI.EndChangeCheck()) 584 | { 585 | EditorUtility.SetDirty(myTarget); 586 | myTarget.positionCE = positionCE; 587 | } 588 | EditorGUI.BeginChangeCheck(); 589 | rotationCE = EditorGUILayout.Vector3Field("Rotation", myTarget.rotationCE); 590 | if (EditorGUI.EndChangeCheck()) 591 | { 592 | EditorUtility.SetDirty(myTarget); 593 | myTarget.rotationCE = rotationCE; 594 | } 595 | EditorGUI.BeginChangeCheck(); 596 | scaleCE = EditorGUILayout.Vector3Field("Scale", myTarget.scaleCE); 597 | if (EditorGUI.EndChangeCheck()) 598 | { 599 | EditorUtility.SetDirty(myTarget); 600 | myTarget.scaleCE = scaleCE; 601 | } 602 | #endregion 603 | break; 604 | case 14://WireCubeExtended 605 | #region WireCubeExtended 606 | EditorGUI.BeginChangeCheck(); 607 | positionWCE = EditorGUILayout.Vector3Field("Position", myTarget.positionWCE); 608 | if (EditorGUI.EndChangeCheck()) 609 | { 610 | EditorUtility.SetDirty(myTarget); 611 | myTarget.positionWCE = positionWCE; 612 | } 613 | EditorGUI.BeginChangeCheck(); 614 | rotationWCE = EditorGUILayout.Vector3Field("Rotation", myTarget.rotationWCE); 615 | if (EditorGUI.EndChangeCheck()) 616 | { 617 | EditorUtility.SetDirty(myTarget); 618 | myTarget.rotationWCE = rotationWCE; 619 | } 620 | EditorGUI.BeginChangeCheck(); 621 | scaleWCE = EditorGUILayout.Vector3Field("Scale", myTarget.scaleWCE); 622 | if (EditorGUI.EndChangeCheck()) 623 | { 624 | EditorUtility.SetDirty(myTarget); 625 | myTarget.scaleWCE = scaleWCE; 626 | } 627 | #endregion 628 | break; 629 | } 630 | 631 | EditorGUILayout.EndVertical(); 632 | 633 | } 634 | else 635 | { 636 | EditorGUILayout.HelpBox("FastGizmos is disabled", MessageType.Info, true); 637 | } 638 | } 639 | } 640 | } 641 | --------------------------------------------------------------------------------