Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Mode

enumeration

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Force the InspectorElement to generate specific types of inspectors, instead of going by the normal checks that try to find a custom inspector and if that fails generates a default inspector.

Properties

NormalThis is the default mode. It just means: check for a custom inspector and if none is found generate the default inspector.
DefaultForce generation of the default inspector, even if a custom inspector exists.
CustomForce generation of the custom inspector. If no custom inspector is found only a label will be generated, saying no inspector was found.
IMGUIForce generation of the custom IMGUI inspector. If no custom IMGUI inspector is found only a label will be generated, saying no IMGUI inspector was found.

Did you find this page useful? Please give it a rating: