Custom attributes for unity
Creates a tag field from a string variable
Creates two slider and makes sure that the value in min slider is not larger than the value in max slider (second field should have HideInInspector attribute)
- min - minimum value
- max - maximum value
- name - name describing sliders
Align two or more fields horizontally (after first field, every next should have hideInInspector attribute)
- propertiesCount - number of variable to align (two by default)
Displays field value as uneditable text
Create a dropdown with values specified in constructor
- values - string values to display in dropdown
Adds button that let u inspect any reference component in separate window without need to switch selection target, I find it especially useful with ScriptableObject.
Creates a dropdown with list of types that inherit from specified interface or abstract class (SerializeReference attribute is required)
- Refresh - refresh list of types
- Inject - inject selected type in the drop down (undo is not supported)
- If not argument specified field direcly below attribute will be disable in inspector, to disable every field in class you need to specified GT_DisableGroupEnd or GT_DisableGroupEndDecorator attribute for next field.
- If field name specified, then the field with that name will control whether fields between GT_DisableGroupBegin and GT_DisableGroupEnd (or GT_DisableGroupEndDecorator) are disabled or not.
- fieldName - name of the field that control whether fields between GT_DisableGroupBegin and GT_DisableGroupEnd (or GT_DisableGroupEnd Decorator) are disabled or not (work for reference type and bool)
- inverted - inverts disable group behaviour
- parentFieldName - field name of the parent disable group
- parentInverted - is parent disable group behaviour inverted?
Ends disable group. Use GT_DisableGroupEnd for classes and GT_DisableGroupEndDecorator for fields