├── .gitattributes ├── .gitignore ├── Editor.meta ├── Editor ├── EasyShortCutLockInspector.Editor.asmdef ├── EasyShortCutLockInspector.Editor.asmdef.meta ├── EasyShortCutLockInspector.cs └── EasyShortCutLockInspector.cs.meta ├── README.md ├── README.md.meta ├── package.json └── package.json.meta /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Mm]emoryCaptures/ 12 | 13 | # Never ignore Asset meta data 14 | !/[Aa]ssets/**/*.meta 15 | 16 | # Uncomment this line if you wish to ignore the asset store tools plugin 17 | # /[Aa]ssets/AssetStoreTools* 18 | 19 | # Autogenerated Jetbrains Rider plugin 20 | [Aa]ssets/Plugins/Editor/JetBrains* 21 | 22 | # Visual Studio cache directory 23 | .vs/ 24 | 25 | # Gradle cache directory 26 | .gradle/ 27 | 28 | # Autogenerated VS/MD/Consulo solution and project files 29 | ExportedObj/ 30 | .consulo/ 31 | *.csproj 32 | *.unityproj 33 | *.sln 34 | *.suo 35 | *.tmp 36 | *.user 37 | *.userprefs 38 | *.pidb 39 | *.booproj 40 | *.svd 41 | *.pdb 42 | *.mdb 43 | *.opendb 44 | *.VC.db 45 | 46 | # Unity3D generated meta files 47 | *.pidb.meta 48 | *.pdb.meta 49 | *.mdb.meta 50 | 51 | # Unity3D generated file on crash reports 52 | sysinfo.txt 53 | 54 | # Builds 55 | *.apk 56 | *.unitypackage 57 | 58 | # Crashlytics generated file 59 | crashlytics-build.properties 60 | 61 | -------------------------------------------------------------------------------- /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1544ca4f106a40147a9c88442049df2d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/EasyShortCutLockInspector.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "EasyShortCutLockInspector.Editor", 3 | "rootNamespace": "EasyShortCutLockInspector.Editor", 4 | "references": [], 5 | "includePlatforms": [ 6 | "Editor" 7 | ], 8 | "excludePlatforms": [], 9 | "allowUnsafeCode": false, 10 | "overrideReferences": false, 11 | "precompiledReferences": [], 12 | "autoReferenced": true, 13 | "defineConstraints": [], 14 | "versionDefines": [], 15 | "noEngineReferences": false 16 | } -------------------------------------------------------------------------------- /Editor/EasyShortCutLockInspector.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f828beb97e34ff34da4ba236f87d7003 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/EasyShortCutLockInspector.cs: -------------------------------------------------------------------------------- 1 | namespace EasyShortCutLockInspector.Editor 2 | { 3 | using UnityEditor; 4 | using UnityEngine; 5 | 6 | internal class EasyShortCutLockInspector : MonoBehaviour 7 | { 8 | [MenuItem("Edit/Toggle Inspector Lock %l")] 9 | public static void Lock () 10 | { 11 | ActiveEditorTracker.sharedTracker.isLocked = ! ActiveEditorTracker.sharedTracker.isLocked; 12 | ActiveEditorTracker.sharedTracker.ForceRebuild (); 13 | } 14 | 15 | [MenuItem("Edit/Toggle Inspector Lock %l", true)] 16 | public static bool Valid () 17 | { 18 | return ActiveEditorTracker.sharedTracker.activeEditors.Length != 0; 19 | } 20 | } 21 | } -------------------------------------------------------------------------------- /Editor/EasyShortCutLockInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc38810d01aa349a58ef94ab631b2060 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Easy Shortcut Lock Inspector 2 | 3 | [![Asset Store Link](https://img.shields.io/badge/-Asset%20Store-orange)](https://assetstore.unity.com/packages/tools/easyshortcutlockinspector-23579) ![Unity 4.5.4](https://img.shields.io/badge/Unity-4.5.4-green) [![License: Unity EULA](https://img.shields.io/badge/License-Unity%20EULA-blueviolet)](https://unity3d.com/legal/as_terms) [![openupm](https://img.shields.io/npm/v/com.frecre.easy-shortcut-lock-inspector?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.frecre.easy-shortcut-lock-inspector/) 4 | 5 | A shortcut key to toggle the lock/unlock Inspector option with Ctrl+L or Command+L. 6 | 7 | I don't take any credit for the code in the package. All credit goes to [FreCre](https://assetstore.unity.com/publishers/7617). 8 | 9 | ### How To Change Shortcut 10 | 11 | 1. Go to Edit -> Shortcuts. 12 | 2. Press Default -> Create new profile. 13 | 3. Type "Toggle Inspector Lock" in the search bar. 14 | 4. Double-click the default shortcut and type in your desired shortcut. 15 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5570bf1db82ce7641bdd91ecbe0be68b 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "com.frecre.easy-shortcut-lock-inspector", 3 | "version": "1.1.2", 4 | "displayName": "Easy Shortcut Lock Inspector", 5 | "description": "A shortcut key to toggle Inspector option lock/unlock with Ctrl+L.", 6 | "keywords": [ 7 | "inspector", 8 | "shortcut", 9 | "hotkey", 10 | "lock", 11 | "key", 12 | "button" 13 | ], 14 | "author": { 15 | "name": "FreCre", 16 | "url": "https://assetstore.unity.com/publishers/7617" 17 | }, 18 | "type": "tool", 19 | "unity": "2017.1" 20 | } 21 | -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6430e79e6384574295d6b3caf0b2193 3 | PackageManifestImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | --------------------------------------------------------------------------------