Unity Propertyfield

This post will cover creating tool window, gathering of selected objects on the scene, and using Unity’s Undo class. Create a Unity ID. Please try again in a few minutes. I have to pass just a single field. Recently, Unity added a new tool to its arsenal, in the form of Property Drawers. [Unityエディター拡張] 変数の型に合わせたフィールドを作成する. 6 Additional downloads. // No esta funcionando como se espera al usar arrays (muestra array y oculta los children mas bien). //The scripts below show how to use a propertyField to change your editor. Then we draw that information in the custom Editor Window. ")); 67 EditorGUILayout. Submission failed. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers. Unity is the ultimate game development platform. Not so long ago I participated in the development of the game on Unity. members having getters/setters) of a class visible to the Unity inspector. So I tried that. Use CustomEditor to customize your script inspector Unity, by default, is using the most generic way to display these properties because it does not know the context. When using Unity it seems, for some reason, that to use the Unity editor you need to have these fields as public and not use properties. The scripts below make the properties (i. PropertyField lets you control the values which the user sets by subclassing the class and overriding the newValue(val) method filters all newly user-set values and "corrects" them. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers. If you have an unique property in diferent objects, then that's what you need. skin which contains the default skin for your editor window. GetIterator() but Unity complained I needed to call Next(true). To get around this, I created a list of key-value pairs which gets loaded into the dictionary by unity. In C#, what makes. Serializable类(可序列化类)在Unity中有什么含义呢? 默认地,Unity只给自定义的公有变量、继承自MonoBehaviour的类执行序列化,所以如果想让一个类序列化,那么就要指定[Serializable]标签。它将MetaData放入可以通过反射重新获取并由Unity使用的类中。. using System. Set the layer of the selected GameObjects. cs in Editor folder. Public Member Functions | Protected Member Functions PropertyField (SerializedProperty prop, string label,. Say you need to draw an instance of a custom class, or a UnityEvent, you would be almost forced to do it the way I posted above :). The ResourceManager itself is really easy to write- it's just a Dictionary. A simple class designed to allow the user to modify a property in the form of a string, number, boolean value, or option. An optional list of layout options that specify extra layouting properties. Original Description. Make a layer selection field. This lets you keep the class's fields private, and force all external access to come through the properties (where you can add range limitations or other logic), without losing the ability to still edit those values using the Unity inspector. I'm Matt Schell, the Senior Screencaster on the Online Evangelism team at Unity. However I took it upon myself as a learning experience to create a modular based AI system so that I could make use of Unity's editor and quickly define and tweak my AI behavior as I develop. My system is no exception because I really don't need anything fancy for what I'll be doing. Use CustomEditor to customize your script inspector Unity, by default, is using the most generic way to display these properties because it does not know the context. 👨‍💻 The idea 💡 Let's elaborate a little bit on the concept for our Replace Tool. ModuleContext. //Attach this first script to the GameObject that you would like to control. Weitere Namen oder Marken sind Markenzeichen ihrer jeweiligen Eigentümer. I don't think I understand this fully. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers. Success! Thank you for helping us improve the quality of Unity Documentation. Let's see how to code this beautiful interface in Unity IDE using ReorderableList. A lot of time was devoted to tools for colleagues: level editor for game designer, convenient databases for artists. For now I'm just trying to simulate the default draw that Unity does with the lists (an expand arrow, a size field that creates that amount of. GitHub Gist: instantly share code, notes, and snippets. A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community. Unity is the ultimate game development platform. EDIT2: The last version of my post containted few copy and paste errors. For some reason your suggested change could not be submitted. So I tried that. Then you would be manually typing the tags you want to use in your script, having to double check if they are written correctly and part of the tags that are currently available in. //The scripts below show how to use a propertyField to change your editor. cs PropertyField. Please try again in a few minutes. CustomPropertyDrawer not being using in EditorGUI. More than 5 years have passed since last update. EditorUtility. Custom List EditorGUILayout. 3之前是标记对象被修改(Dirty)的主要方法。但从5. This is essentially a 'what are the pros and cons' question. Success! Thank you for helping us improve the quality of Unity Documentation. PropertyField lets you control the values which the user sets by subclassing the class and overriding the newValue(val) method filters all newly user-set values and "corrects" them. cpp/* AnalogInput. PropertyField() Solved (self. Wed, Jun 20, 2018, 6:00 PM: It's time for the June meetup!This week you can learn about UIElements is a new retained-mode GUI framework to rapidly develop performant and reusable Editor Extensions. It's good practice to check for null values. PropertyField. Unity字段使用的特性绘制. NaughtyAttributes is an extension for the Unity Inspector. UnityEditor. PropertyField but AFAICT there's no way to pass the entire object to EditorGUILayout. Please try again in a few minutes. Unity Foldout Base Properties. パラメータをUnityエディタ上で設定していくうえで、設定しやすいことに越したことはありませんよね。 まったく同じパラメータを何度も何度も入力するのはとても疲れます。. PropertyField can't fully disable array or List. All this is done in Unity 2018 and for the purpose of dialogue system I'm using a free asset form the asset store called RPG talk. EditorGUILayout. To get around this, I created a list of key-value pairs which gets loaded into the dictionary by unity. Collections. Add code in this script for any of the actions you require. Public Member Functions | Protected Member Functions PropertyField (SerializedProperty prop, string label,. For now I'm just trying to simulate the default draw that Unity does with the lists (an expand arrow, a size field that creates that amount of. members having getters/setters) of a class visible to the Unity inspector. I wasn't 100% sure how to do this so I made my list a ScriptableObject which would only show the first string, which would make sense because the SerializedProperty is only trying to find that one string. * * You are granted a perpetual, non-exclusive. Right now our star looks like a very ugly polygon. Assets/ARDUnity/Arduino/AnalogInput. cs and a EditorList. PropertyField. A new exciting editor extension feature is coming for Unity 4 - Property Drawers! What started out as a NinjaCamp project between Rune and I has now been included in Unity. Not so long ago I participated in the development of the game on Unity. 免费下载我要自学网Unity3D视频教程【Unity C#编程】自定义编辑器(一),【Unity C#编程】自定义编辑器(一). Unity Account You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Generic; using UnityEngine; public class Enemy : Mo. For some reason your suggested change could not be submitted. PropertyField. A new exciting editor extension feature is coming for Unity 4 - Property Drawers! What started out as a NinjaCamp project between Rune and I has now been included in Unity. Investing the time to customize Unity's environment today will make game development much more efficient tomorrow. members having getters/setters) of a class visible to the Unity inspector. io Unityプロジェクトの中には自作の Attribute がいくつかあり、その自作の Attribute の中には、変数が配列時に使用する専用ものがありました。. This post will cover creating tool window, gathering of selected objects on the scene, and using Unity’s Undo class. 我们都知道Unity是基于组件开发的引擎. The property drawer is primarily not for complex structures, but they too work in theory. This is an attribute implementation that matches the behavior of the default one. PropertyField (rect, targetElement, propHeader, isExpanded); // If drawing the selected element, use it to set the element height // Element height seems to control selected background. The reason the generic versions of various methods are slower than the non-generic one is quite simple: They were tacked-on after-the-fact and essentially just call the non-generic ones, after getting the name of the type parameter as a String. Description. But PropertyField will auto detect the type of serializedproperty and display it the correct way. Unity EditorGUI. CustomPropertyDrawer not being using in EditorGUI. Select the runtime platforms of your choice from the list below (the desktop runtime is included as standard) or, to install the full complement of runtime platforms, use the download assistant installer above. The code here provided is intended for those that want to hold their variables private and let them access only through get/set accessors, so further processing becomes possible. Collections. Editor script that inspects an array in another script to present a choice on current script. I wasn't 100% sure how to do this so I made my list a ScriptableObject which would only show the first string, which would make sense because the SerializedProperty is only trying to find that one string. PropertyField (white, new GUIContent ("White", "Smallest luminance value that will be mapped to white"));. PropertyField: Manual : Reference : Scripting : Scripting > Editor Classes > EditorGUI: EditorGUI. jp でエディタ拡張について整理したので作り始めたところ、早速躓いたのでメモ。 これをCustom Editorsで作るのに苦労した。. EditorGUILayout. Let’s pretend that we are Level Designer and the first thing that we are doing when creating a new level, we are making a block out. I made a SerializedProperty so I could call EditorGUILayout. Usage: Put the second. PropertyField. ReadOnly property drawer for Unity~ Add a [ReadOnly] attribute to a property to make it show up as read only in the inspector - ReadOnlyAttribute. ModuleContext. Contribute to yika-aixi/IcAttribute development by creating an account on GitHub. zip" and open in Unity 2. Collections; using System. Unity字段使用的特性绘制. So far I can't get it to work. Unity is the ultimate game development platform. For now I'm just trying to simulate the default draw that Unity does with the lists (an expand arrow, a size field that creates that amount of. But PropertyField will auto detect the type of serializedproperty and display it the correct way. I tried passing mySerializedObject. PropertyField() Solved (self. UnityEditor. I serialized both and they show ok in standard Inspector draw in Unity, but I need to customize the Inspector showing this list, so I made a InspectorCustomizer. PropertyField. If we modify the Agreement, we will post the modification on the Site or otherwise provide you with notice of the modification. Collections. This is the first time I'm working with an EditorWindow. Make a layer selection field. Unity asset store links are affiliate links. Description. cs PropertyField. 5 * * Copyright (c) 2013-2016, Esoteric Software * All rights reserved. That means at no cost to you, I will receive a commission on purchases made on the asset store by clicking those links. I'll let you know after I add it and if you send me a PM with your BD invoice number and Unity version I can send it to you before release. ReadOnly property drawer for Unity~ Add a [ReadOnly] attribute to a property to make it show up as read only in the inspector - ReadOnlyAttribute. 3で使用可能になったSpriteの表示サイズを変更する. It also provides attributes that can be applied to non-serialized fields or functions. The A* Pathfinding Project for Unity 3D. ModuleContext. Previously we were limited to specifying how to draw a whole component, which had its limitations in terms of reuse. Property Drawers significantly reduce the amount of work you have to do in order to customize how your scripts look in the. Public Member Functions | Protected Member Functions PropertyField (SerializedProperty prop, string label,. Sometimes you have custom objects that contain data but do not derive from MonoBehaviour. I want the title to change its text and color based on the object that is mouse-overed. I'm Matt Schell, the Senior Screencaster on the Online Evangelism team at Unity. I make stuff in Unity and teach others how to do it via our Twitch channel and on YouTube. 22 hours ago · // No esta funcionando como se espera al usar arrays (muestra array y oculta los children mas bien). Adding these objects as a field in a class that is MonoBehaviour will have no visual effect unless you write your own custom property drawer for the object's type. A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store, and participate in the Unity community. Sorry for the n00b question, but I just don't know how to do it How does one display an array in a custom editor window, not a custom inspector Thanks,. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Yes, I plan on adding this to the next version. For some reason your suggested change could not be submitted. Generic; using UnityEngine; public class Enemy : Mo. So far I can't get it to work. Hypertext for Unity UI. I have a script that has an Icon field with a textur. PropertyField can't fully disable array or List. The not-so-new Unity 4 introduced Property Drawers. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. The scripts below make the properties (i. Unity reserves the right, at its sole discretion, to modify, discontinue or terminate the Services. 我们都知道Unity是基于组件开发的引擎. Normal practice is to not expose fields and instead use properties. PropertyField. The code here provided is intended for those that want to hold their variables private and let them access only through get/set accessors, so further processing becomes possible. The older version can still be found here. Submission failed. PropertyField. Create a Unity ID. 由于 unity原生编辑器 不符合项目的需求或使用者的审美,需要对编辑器进行扩展,例如 unity原生字段在inspect面板的显示,希望字段能以中文方式显示字段,unity编辑器扩展功能就能帮助我们提供解决方法。. For now I'm just trying to simulate the default draw that Unity does with the lists (an expand arrow, a size field that creates that amount of. 好吧,我承认自己是个强迫症患者,在做项目的时候发现脚本的Inspector面板上暴露的密密麻麻的变量头皮一举个例子比如我要写一个Enemy的类,我希望这个Enemy里面包括了所有的敌人类型,比如飞机坦克等但是由于类型不同,他们的一直变量类型也不同,比如坦克的变量类型可能有移动速度,子弹. 3 and above. Instantly share code, notes, and snippets. Unity is the ultimate game development platform. 2015/9/10 Unity, Unityエディター拡張. The property drawer is primarily not for complex structures, but they too work in theory. I cannot figure out how to make a texture field appear in my custom inspector and the documentation explains little to nothing on how to do it. 4 Additional downloads. For some reason your suggested change could not be submitted. SetDirty在Unity5. Original Description. io Unityプロジェクトの中には自作の Attribute がいくつかあり、その自作の Attribute の中には、変数が配列時に使用する専用ものがありました。. A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store, and participate in the Unity community. Description. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Kind of glossing over in and outs but here's what I used as an editor script to look up a script in the inspector and recall values from an array for use in another script, to be fair, this would be only useful for making in house editor components. Please try again in a few minutes. The secret to all this is the PropertyField, which is similar to the IntField or FloatField but it will draw whatever type of field is the default for the type of the property, which will be the custom PropertyDrawer if the type has one. PropertyField but AFAICT there's no way to pass the entire object to EditorGUILayout. More than 5 years have passed since last update. Let's pretend that we are Level Designer and the first thing that we are doing when creating a new level, we are making a block out. An optional list of layout options that specify extra layouting properties. 6 Additional downloads. Select the runtime platforms of your choice from the list below (the desktop runtime is included as standard) or, to install the full complement of runtime platforms, use the download assistant installer above. EditorGUILayout. 富文本在unity中Text中的使用还是比较广泛的,简单罗列一下。unity中的富文本使用的是html5的格式,即在一对匹配的字符中包含需要富文本化的文字内容。支持如下:b粗体粗体i斜体斜体size给 博文 来自: qq_28112287的博客. Full explanation: Unity takes 30% of the sale value of all asset store purchases. skin which contains the default skin for your editor window. int - The layer selected by the user. This lets you keep the class's fields private, and force all external access to come through the properties (where you can add range limitations or other logic), without losing the ability to still edit those values using the Unity inspector. zip" and open in Unity 2. A lot of time was devoted to tools for colleagues: level editor for game designer, convenient databases for artists. Unity EditorGUI. So I tried that. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers. 5 * * Copyright (c) 2013-2016, Esoteric Software * All rights reserved. If you have an unique property in diferent objects, then that's what you need. Wed, Jun 20, 2018, 6:00 PM: It's time for the June meetup!This week you can learn about UIElements is a new retained-mode GUI framework to rapidly develop performant and reusable Editor Extensions. CustomPropertyDrawer not being using in EditorGUI. All files as a unitypackage. 4 Additional downloads. EditorGUILayout. 22 hours ago · // No esta funcionando como se espera al usar arrays (muestra array y oculta los children mas bien). Let's pretend that we are Level Designer and the first thing that we are doing when creating a new level, we are making a block out. Unityで手抜きしてインスペクターを拡張する方法 手抜きその1「エディタ拡張せずに、インスペクターから更新」 サンプルとしてUnity4. Active 3 months ago. // el "buscar en children" indica que se le permite buscar en sus hijos algun Animator (en vez de solo en si mismo). Adding these objects as a field in a class that is MonoBehaviour will have no visual effect unless you write your own custom property drawer for the object's type. 3で使用可能になったSpriteの表示サイズを変更する. Let’s pretend that we are Level Designer and the first thing that we are doing when creating a new level, we are making a block out. gives me my re-sizable list in the inspector, but I don't know how to retrieve what Object(s) were put into the editor because the method returns a bool and doesn't trigger an Event with a command name!. Then you would be manually typing the tags you want to use in your script, having to double check if they are written correctly and part of the tags that are currently available in. A Unity C# scripting tutorial in which you create your own custom data and a That happens because the PropertyField method adjusts for the current editor indent. I have to pass just a single field. Serializable],来显示在ipspector? 我来答. Unity ExposedReference Example. Phase 2 teaches you how to build an inventory including building a UI and item management system for player inventory using Unity's UI System and some editor scripting. Use CustomEditor to customize your script inspector Unity, by default, is using the most generic way to display these properties because it does not know the context. using System. 3で使用可能になったSpriteの表示サイズを変更する. 4 Additional downloads. Unityで手抜きしてインスペクターを拡張する方法 手抜きその1「エディタ拡張せずに、インスペクターから更新」 サンプルとしてUnity4. Unity Tip: Advanced SerializedProperties March 29, 2016 chris Uncategorized If you are writing editor code, it is common to use the SerializedObject and SerializedProperty interface to view the serialized form of data. //The scripts below show how to use a propertyField to change your editor. Here's the link: https:. File:SerializableDictionary. 2015/9/10 Unity, Unityエディター拡張. PropertyDrawer - FindPropertyRelative always null. Ask Question and the way Unity presents it is by showing the "Size" property. Collections. members having getters/setters) of a class visible to the Unity inspector. Use Unity to build high-quality 3D and 2D games, deploy them across mobile, desktop, VR/AR, consoles or the Web, and connect with loyal and enthusiastic players and customers. PropertyField. I want the title to change its text and color based on the object that is mouse-overed. They allow specifying how to display your own types inside Unity's editor interface, when contained as a variable of a MonoBehaviour. A simple class designed to allow the user to modify a property in the form of a string, number, boolean value, or option. That way Unity gets its list and I get my Dictionary. When using Unity it seems, for some reason, that to use the Unity editor you need to have these fields as public and not use properties. PropertyField: Manual : Reference : Scripting : Scripting > Editor Classes > EditorGUI: EditorGUI. Editor script that inspects an array in another script to present a choice on current script. Right now our star looks like a very ugly polygon. cpp - Ardunity Arduino library Copyright (C) 2015 ojh6t3k. You can also choose if you want to add a property drawer for the type very easily. However the Unity Editor doesn't seem to be able to serialize (and thus render) Dictionaries. GetIterator() but Unity complained I needed to call Next(true). 否则修改后的prefab无法保存。 拓展知识. PropertyField() requires some sort of SerializedProperty taken from a SerializedO. ")); 67 EditorGUILayout. PropertyField. A new exciting editor extension feature is coming for Unity 4 - Property Drawers! What started out as a NinjaCamp project between Rune and I has now been included in Unity. CustomPropertyDrawer not being using in EditorGUI. For now I'm just trying to simulate the default draw that Unity does with the lists (an expand arrow, a size field that creates that amount of. Sorry for the n00b question, but I just don't know how to do it How does one display an array in a custom editor window, not a custom inspector Thanks,. All files as a unitypackage. 开发过程中,美术会经常性修改动作,不了解Unity的美术很容易覆盖掉已经添加好的事件导致工作白做,于是写了个工具单独存储动画事件,自动绑定到动画文件上. GitHub Gist: instantly share code, notes, and snippets. * * You are granted a perpetual, non-exclusive. I made a SerializedProperty so I could call EditorGUILayout. However the Unity Editor doesn't seem to be able to serialize (and thus render) Dictionaries. This lets you keep the class's fields private, and force all external access to come through the properties (where you can add range limitations or other logic), without losing the ability to still edit those values using the Unity inspector. [CreateAssetMenuAttribute(fileName = "New Play Animation Clip", menuName = "Example/PlayAnimationClip")] public class PlayAnimationClip : TimeLineClip. This is the first time I'm working with an EditorWindow. ChiliProject. You can also choose if you want to add a property drawer for the type very easily. EditorGUILayout. The code here provided is intended for those that want to hold their variables private and let them access only through get/set accessors, so further processing becomes possible. The A* Pathfinding Project for Unity 3D. PropertyField: Manual : Reference : Scripting : Scripting > Editor Classes > EditorGUI: EditorGUI. 3で使用可能になったSpriteの表示サイズを変更する. Add code in this script for any of the actions you require. With affiliate links, I will get 5% and Unity's commission will be reduced to 25% to compensate. This post will cover creating tool window, gathering of selected objects on the scene, and using Unity’s Undo class. Not so long ago I participated in the development of the game on Unity. 4 Additional downloads. Unity3D) submitted 1 year ago by DARKHAWX Indie So I've got a ReorderableList of objects and one of the objects includes a custom class that I've created a custom property drawer for. In C#, what makes. There are a few objects in the scene as well as a title. The script below is added to each object that is int. I made a SerializedProperty so I could call EditorGUILayout. A Unity C# scripting tutorial in which you create an alternative visualization for lists in the editor. Description. PropertyField does not create GUI for array's (with HideInInspector flag) elements in the Inspector ArrayOnInspectorBug. A User Showcase of the Unity Game Engine. Create a Unity ID. Indeed, if you have been using the new Unity's Entity Component System (ECS), you might have noticed that there is a lack of a blittable bool for use in components. You can use decorator attributes but that’s not the only way you can deal with it. The scripts below make the properties (i. PropertyField (white, new GUIContent ("White", "Smallest luminance value that will be mapped to white"));. 由于 unity原生编辑器 不符合项目的需求或使用者的审美,需要对编辑器进行扩展,例如 unity原生字段在inspect面板的显示,希望字段能以中文方式显示字段,unity编辑器扩展功能就能帮助我们提供解决方法。. zip" and open in Unity 2. EditorGUILayout. Ask Question and the way Unity presents it is by showing the "Size" property. Adding these objects as a field in a class that is MonoBehaviour will have no visual effect unless you write your own custom property drawer for the object's type. ReadOnly property drawer for Unity~ Add a [ReadOnly] attribute to a property to make it show up as read only in the inspector - ReadOnlyAttribute. Property Drawers significantly reduce the amount of work you have to do in order to customize how your scripts look in the. The code here provided is intended for those that want to hold their variables private and let them access only through get/set accessors, so further processing becomes possible. For now I'm just trying to simulate the default draw that Unity does with the lists (an expand arrow, a size field that creates that amount of. SetDirty在Unity5. A new exciting editor extension feature is coming for Unity 4 – Property Drawers! What started out as a NinjaCamp project between Rune and I has now been included in Unity. Instantly share code, notes, and snippets. Indeed, there previously was a blittable bool1 , which was replaced by a recent update of the entity package, with no replacement, while the billatable types bool2, bool3. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Cant remember where that is used but what it does is verifying that variable m_world isn't null. 👨‍💻 The idea 💡 Let’s elaborate a little bit on the concept for our Replace Tool. I tried passing mySerializedObject. PropertyField() requires some sort of SerializedProperty taken from a SerializedO. 3b, is here with lots of new features, improvements, and a completely refreshed interface. PropertyField (middleGrey, new GUIContent ("Middle grey", "Middle grey defines the average luminance thus brightening or darkening the entire image. Original Description. (because that is also what I want) Only difference is, for this you don’t need a custom editor script for your component if you just want to have string that you want to use as a tag field. using UnityEngine;. However I took it upon myself as a learning experience to create a modular based AI system so that I could make use of Unity's editor and quickly define and tweak my AI behavior as I develop. In C#, what makes. What is the difference between a field and a property? Ask Question Asked 10 years, 10 months ago. 4 Additional downloads. How can I create a custom PropertyDrawer for my Point struct? from the struct in the way that Unity's inspector code wants you too. Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. If you have ever tried to use tags as a variable input property in a Unity inspector script, you have probably used a regular string property or an array of them. zip" and open in Unity 2. PropertyField (white, new GUIContent ("White", "Smallest luminance value that will be mapped to white"));. As an introduction to editor scripting, in the session we will look at how to customize and change the way the Inspector looks in our project by using Property Drawers and Custom Inspectors. Recently, Unity added a new tool to its arsenal, in the form of Property Drawers. Use CustomEditor to customize your script inspector Unity, by default, is using the most generic way to display these properties because it does not know the context.