filmov
tv
Unity Editor Scripting - Basic Button

Показать описание
We show you how to make a Custom Inspector in the simplest way possible. We'll address a big thing to watch out for - making sure the Inspector refreshes. Make your first editor script button without the complexity of traditional editor scripting!
--------------------
There's a slight modification to not require the particle system, so you could plug into your project instantly for reference. The linked code uses the EditorGUIUtility.PingObject() because that's useful in and of itself to know about.
--------------------
We start off by adding a Custom Inspector Button, then extend the script to add more power and versatility.
We use a little bit of conditional compilation (easy) to make their creation faster. This lets you combine Unity Engine and Unity Editor code in one file, without errors.
This powerful scripting technique is super versatile and I use it in about 1/4 of all scripts I create. You can use this Unity custom editor tutorial as the intro point to make custom editor tools.
0:00 Quick Intro
0:15 Basic Script & Preprocessor Directives
1:17 Extending the Editor Script
2:11 Fixing Inspector Repainting and Refresh
#unity #gamedev #ui #unityui #beginners #unityeditor #unitytutorial #editorscripting #tutorial
--------------------
There's a slight modification to not require the particle system, so you could plug into your project instantly for reference. The linked code uses the EditorGUIUtility.PingObject() because that's useful in and of itself to know about.
--------------------
We start off by adding a Custom Inspector Button, then extend the script to add more power and versatility.
We use a little bit of conditional compilation (easy) to make their creation faster. This lets you combine Unity Engine and Unity Editor code in one file, without errors.
This powerful scripting technique is super versatile and I use it in about 1/4 of all scripts I create. You can use this Unity custom editor tutorial as the intro point to make custom editor tools.
0:00 Quick Intro
0:15 Basic Script & Preprocessor Directives
1:17 Extending the Editor Script
2:11 Fixing Inspector Repainting and Refresh
#unity #gamedev #ui #unityui #beginners #unityeditor #unitytutorial #editorscripting #tutorial
Комментарии