I show you the basics of creating a custom inspector without wasting any time!
Sometimes you will want to use GUILayout and other times EditorGUILayout. EditorGUILayout is basically for making the kind of widgets you see in inspectors. If they both have a version of the same widget, for example GUILayout.Toggle/EditorGUILayout.Toggle (for creating checkboxes), then the one in EditorGUILayout will make a checkbox that will usually look better in an inspector. In other words, check out EditorGUILayout first, then if it doesn't have what you want, check out GUILayout. It's a bit weird, but you get used to it.
GUILayout:
EditorGUILayout:
The official docs for Custom Inspectors:
Watch video Unity Custom Inspectors in 100 seconds online without registration, duration 01 minute 56 second in high hd quality. This video was added by user Kemble Software 09 April 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 28 thousand once and liked it 1 thousand people.