Jack Franzen
Jack Franzen
  • 1
  • 23
Tutorial: Custom Unity Inspector - Track Updates Correctly!
This demo shows how to create a custom Editor (or Inspector) for your component in Unity. It rapidly covers a number of concepts, from Serialized Objects to Undo and Redo. (Voice generated using Eleven Labs AI technology.)
In the demo, many custom inspector GUIs are created for a component that distributes objects within a radius. Changes to important data (SerializedProperties) are tracked correctly, which causes the component to be marked as dirty. Updates to serialized properties are properly tracked against paste, reset, revert, and other complicated operations.
This video also presents the open source "BetterEditor" library and demonstrates its value
www.github.com/jackfranzen/BetterEditor/
(The library contains the demo scene, components, and all code shown in the video, and it's got tons of comments which expand and explain concepts in the video!)
--
0:00 Intro
0:20 We're making an inspector
1:42 What is BetterEditor?
2:18 Breaking down our component
2:53 [Step 1] Basic Custom Inspector
3:53 Serialized Objects and Properties
5:23 [Step 2] Iterating Properties
7:05 [Step 3] Fully Customized Inspector
8:01 [Step 3.5] Tracking updates correctly!
10:17 [Step 4] Improving with BetterEditor
12:03 [Step 5] Inspectors for sub-classes
14:17 [Step 6] Final BetterEditor Improvements
16:48 Explaining Undo
20:14 Outro
----
Tags: Unity, Unity3D, Unity Editor, Editor Scripting, Custom Editor, BetterEditor, betterEditor, Unity Tutorial, SerializedProperty, SerializedTrackers, serializedobject, Undo Redo, Unity GUI, Unity Extensions, Game Development, Unity Tips, Unity Plugins, C# Scripting, Unity Assets, Custom Inspector, Unity Tools, Editor Development
Переглядів: 24

Відео