Extension for Unity editor system
Use this repository directly in Unity.
ExtendedDrawer
with extension methods for simple area types like folding / tabsExtendedEditor
with extension methods for simple area types like folding / tabsAutoEditor
with easy attribute usages for serialzed properties:SerializedPropertyReference
to setup reference in target objectSerializedPropertyDefaultPresentation
to present property in default editor waySerializedPropertyIdentifiedObjectPresentation
to present property asIIdentifiedObject
(must be an array ofSerializedProperty
)SerializedPropertyLabeledGroup
to show propety under this groupSerializedPropertyFoldGroup
to show property under this fold groupSerializedPropertyTabGroup
to show property under this tab
TableReorderableTable
to show an table- Use
Columns.Add
to add:FixedColumn
- a column with fixed sizeFlexibleColumn
- a column with percentage size or -1 for empty space
- Do not override
DrawHeaderCallback
orDrawElementCallback
- Use
Hide
to hide a field (conditional, see properties)ReadOnly
to make field read only (conditional, see properties)LayerMask
to mark integer field as layerAssetChooser
to mark field as asset reference to search in databaseScene
to mark string field as scene referenceTag
to mark a field as tag field (combo box)SortingLayer
to mark field as sorting layer choice (combo box)
- Helper methods to find multiple properties for each array element
FindProperties
/FindPropertiesRelative
- Helper methods for serialized properties as extension methods
PlayerSettingsEx
to handle easier:- Check scripting symbol is defined
- Add or delete scripting symbols