Last active
April 12, 2022 09:39
-
-
Save capnslipp/8138106 to your computer and use it in GitHub Desktop.
Revisions
-
capnslipp revised this gist
Dec 5, 2019 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ /// @creator: Slipp Douglas Thompson /// @license: Public Domain per The Unlicense. See <http://unlicense.org/>. /// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. /// @why: Because this functionality should be built-into Unity. /// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ /// @creator: Slipp Douglas Thompson /// @license: Public Domain per The Unlicense. See <http://unlicense.org/>. /// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. /// @why: Because this functionality should be built-into Unity. /// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. -
capnslipp revised this gist
Oct 31, 2015 . 2 changed files with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ /// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. /// @why: Because this functionality should be built-into Unity. /// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. /// @intended project path: Assets/Plugins/EditorUtils/HideInNormalInspectorAttribute.cs /// @interwebsouce: https://gist.github.com/capnslipp/8138106 using UnityEngine; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ /// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. /// @why: Because this functionality should be built-into Unity. /// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. /// @intended project path: Assets/Plugins/Editor/EditorUtils/HideInNormalInspectorDrawer.cs /// @interwebsouce: https://gist.github.com/capnslipp/8138106 using UnityEngine; -
capnslipp revised this gist
Jul 1, 2015 . 2 changed files with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,11 @@ /// @creator: Slipp Douglas Thompson /// @license: WTFPL /// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. /// @why: Because this functionality should be built-into Unity. /// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. /// @intended project path: Assets/Plugins/HideInNormalInspectorAttribute.cs /// @interwebsouce: https://gist.github.com/capnslipp/8138106 using UnityEngine; This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,11 @@ /// @creator: Slipp Douglas Thompson /// @license: WTFPL /// @purpose: HideInNormalInspector attribute, to hide fields in the normal Inspector but let them show in the debug Inspector. /// @why: Because this functionality should be built-into Unity. /// @usage: Add `[HideInNormalInspector]` as an attribute to public fields you'd like hidden when Unity's Inspector is in “Normal” mode, but visible when in “Debug” mode. /// @intended project path: Assets/Plugins/Editor/HideInNormalInspectorDrawer.cs /// @interwebsouce: https://gist.github.com/capnslipp/8138106 using UnityEngine; using UnityEditor; -
capnslipp revised this gist
Jul 1, 2015 . 1 changed file with 0 additions and 16 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,16 +0,0 @@ -
capnslipp renamed this gist
Jan 12, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
capnslipp revised this gist
Jan 12, 2014 . 1 changed file with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ name: HideInNormalInspector version: 1.0.0 summary: "HideInNormalInspector attribute, to hide fields in the normal inspector but let them show in the debug inspector." homepage: "http://answers.unity3d.com/questions/157775/hide-from-inspector-interface-but-not-from-the-deb.html#answer-603532" author: Slipp Douglas Thompson files: - filename: "HideInNormalInspectorAttribute.cs" type: runtime install-path: "Assets/Plugins/HideInNormalInspectorAttribute.cs" - filename: "HideInNormalInspectorDrawer.cs" type: editor install-path: "Assets/Plugins/Editor/HideInNormalInspectorDrawer.cs" required-unity-version: >= 4.3 runtime-dependencies: [] editor-dependencies: [] unitycubes-version: 0r1 -
capnslipp created this gist
Dec 26, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ using UnityEngine; public class HideInNormalInspectorAttribute : PropertyAttribute {} This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ using UnityEngine; using UnityEditor; [CustomPropertyDrawer(typeof(HideInNormalInspectorAttribute))] class HideInNormalInspectorDrawer : PropertyDrawer { public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { return 0f; } public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {} }