1.1.1: Fixed readme file, so unordered list with sub points are drawn correctly on bitbucket

This commit is contained in:
Anders Ejlersen 2021-12-04 15:07:39 +01:00
parent 41ced8fdb7
commit 45411c018a
2 changed files with 49 additions and 49 deletions

View file

@ -9,17 +9,17 @@ These attributes have different categories and some can be combined to create th
There are six different kinds of attributes: There are six different kinds of attributes:
* Access * Access
* Modify access to drawer or value change (E.g. Hide/Show, Disable/Enable input) * Modify access to drawer or value change (E.g. Hide/Show, Disable/Enable input)
* Pre-drawer * Pre-drawer
* Modify `SerializedProperty` or `GUIContent` label before drawing begins * Modify `SerializedProperty` or `GUIContent` label before drawing begins
* Drawer * Drawer
* Custom drawing of the field/method * Custom drawing of the field/method
* Value * Value
* Modify value before setting final result (E.g. clamp value) * Modify value before setting final result (E.g. clamp value)
* Validate * Validate
* Validate field (if invalid, draws as red) * Validate field (if invalid, draws as red)
* Decorator * Decorator
* Adds additional information or styling to a field/method (E.g. Header displays a title/category to fields after attribute) * Adds additional information or styling to a field/method (E.g. Header displays a title/category to fields after attribute)
## Access ## Access
@ -27,33 +27,33 @@ There are six different kinds of attributes:
List of all available access attributes: List of all available access attributes:
* `Disable` * `Disable`
* Disables input to field * Disables input to field
* `DisableField` * `DisableField`
* Disables input to field given value of another field * Disables input to field given value of another field
* `DisableFieldInPlayMode` * `DisableFieldInPlayMode`
* Disables input to field, when in play mode * Disables input to field, when in play mode
* `DisableMethod` * `DisableMethod`
* Disables input to method (button) given value of another field * Disables input to method (button) given value of another field
* `DisableMethodInPlayMode` * `DisableMethodInPlayMode`
* Disables input to method (button), when in play mode * Disables input to method (button), when in play mode
* `EnableField` * `EnableField`
* Enable input to field given value of another field * Enable input to field given value of another field
* `EnableFieldInPlayMode` * `EnableFieldInPlayMode`
* Enable input to field, when in play mode * Enable input to field, when in play mode
* `EnableMethod` * `EnableMethod`
* Enable input to method (button) given value of another field * Enable input to method (button) given value of another field
* `EnableMethodInPlayMode` * `EnableMethodInPlayMode`
* Enable input to method (button), when in play mode * Enable input to method (button), when in play mode
* `HideField` * `HideField`
* Hide field given value of another field * Hide field given value of another field
* `HideInNormalInspector` * `HideInNormalInspector`
* Hide field, if inspector is set to normal mode * Hide field, if inspector is set to normal mode
* `HideMethod` * `HideMethod`
* Hide method (button) given value of another field * Hide method (button) given value of another field
* `ShowField` * `ShowField`
* Show field given value of another field * Show field given value of another field
* `ShowMethod` * `ShowMethod`
* Show method (button) given value of another field * Show method (button) given value of another field
## Pre-drawer ## Pre-drawer
@ -61,7 +61,7 @@ List of all available access attributes:
List of all available pre-drawer attributes: List of all available pre-drawer attributes:
* `FieldLabelFrom` * `FieldLabelFrom`
* Sets GUIContent label for SerializedProperty to value from another field * Sets GUIContent label for SerializedProperty to value from another field
## Drawer ## Drawer
@ -69,42 +69,42 @@ List of all available pre-drawer attributes:
List of all available drawer attributes: List of all available drawer attributes:
* `EnumFlag` * `EnumFlag`
* Adds popup with enum type provided and allows for selecting values as flags (Requirement: Enum must have flag values) * Adds popup with enum type provided and allows for selecting values as flags (Requirement: Enum must have flag values)
* `FilePath` * `FilePath`
* Adds file window and selected file is converted to string path * Adds file window and selected file is converted to string path
* `FolderPath` * `FolderPath`
* Adds folder window and selected folder is converted to string path * Adds folder window and selected folder is converted to string path
* `IntToAnimatorParameter` * `IntToAnimatorParameter`
* Adds popup with all animator parameter names provided by animator field and converts to hash id * Adds popup with all animator parameter names provided by animator field and converts to hash id
* `IntToEnum` * `IntToEnum`
* Adds a popup with enum type provided and converts it to an integer * Adds a popup with enum type provided and converts it to an integer
* `IntToLayer` * `IntToLayer`
* Adds a popup with layers and converts it to an integer * Adds a popup with layers and converts it to an integer
* `MethodButton` * `MethodButton`
* Adds a button in the inspector that invokes the method (Requirement: No arguments) * Adds a button in the inspector that invokes the method (Requirement: No arguments)
* `Naming` * `Naming`
* Adds button to apply naming scheme to string value * Adds button to apply naming scheme to string value
* Types: Camel, Pascal, Snake, Snake (All caps), Kebab, Kebab (All caps) * Types: Camel, Pascal, Snake, Snake (All caps), Kebab, Kebab (All caps)
* `Percentage` * `Percentage`
* Convert float value to percentage and back again (1% = 0.01f) * Convert float value to percentage and back again (1% = 0.01f)
* `PopupFromConst` * `PopupFromConst`
* Adds popup with all const fields of type string in provided type * Adds popup with all const fields of type string in provided type
* `QuaternionToEuler` * `QuaternionToEuler`
* Converts quaternion value to Euler angles and back again * Converts quaternion value to Euler angles and back again
* `SceneDropdown` * `SceneDropdown`
* Adds a popup with all scenes in EditorBuildSettings scenes * Adds a popup with all scenes in EditorBuildSettings scenes
* `Slider` * `Slider`
* Adds a min & max slider and clamps value (Requirement: MinValue and MaxValue) * Adds a min & max slider and clamps value (Requirement: MinValue and MaxValue)
* `StringToAnimatorParameter` * `StringToAnimatorParameter`
* Adds popup with all animator parameter names provided by animator field specified * Adds popup with all animator parameter names provided by animator field specified
* `StringToField` * `StringToField`
* Adds button to open window to find all fields on object of provided type and sets string with selected field name * Adds button to open window to find all fields on object of provided type and sets string with selected field name
* `StringToType` * `StringToType`
* Adds button to open window to find all types assignable from provided type and sets string with selected type name * Adds button to open window to find all types assignable from provided type and sets string with selected type name
* `Tag` * `Tag`
* Adds popup with all tag values for field of type string * Adds popup with all tag values for field of type string
* `UrlGoTo` * `UrlGoTo`
* Adds a button to the field that calls Application.OpenUrl with string value * Adds a button to the field that calls Application.OpenUrl with string value
## Value ## Value
@ -112,15 +112,15 @@ List of all available drawer attributes:
List of all value attributes: List of all value attributes:
* `ArrayIndex` * `ArrayIndex`
* Clamps value between other fields array size `[0;size[` * Clamps value between other fields array size `[0;size[`
* `LargerThanField` * `LargerThanField`
* If value is greater than other fields value, then set value to other fields value * If value is greater than other fields value, then set value to other fields value
* `MaxValue` * `MaxValue`
* If value is greater than max value, then set value to max value * If value is greater than max value, then set value to max value
* `MinValue` * `MinValue`
* If value is less than min value, then set value to min value * If value is less than min value, then set value to min value
* `SmallerThanField` * `SmallerThanField`
* If value is less than other fields value, then set value to other fields value * If value is less than other fields value, then set value to other fields value
## Validate ## Validate
@ -128,7 +128,7 @@ List of all value attributes:
list of all validate attributes list of all validate attributes
* `NotNullField` * `NotNullField`
* Checks if field is null * Checks if field is null
@ -137,6 +137,6 @@ list of all validate attributes
List of all decorator attributes: List of all decorator attributes:
* `HorizontalLine` * `HorizontalLine`
* Draws a horizontal line above the field * Draws a horizontal line above the field
* `MethodHeader` * `MethodHeader`
* Draws a header/title/category text above the method (button) * Draws a header/title/category text above the method (button)

View file

@ -1,6 +1,6 @@
{ {
"name": "com.module.inspector", "name": "com.module.inspector",
"version": "1.1.0", "version": "1.1.1",
"displayName": "Module.Inspector", "displayName": "Module.Inspector",
"description": "Custom inspector with various useful property drawers", "description": "Custom inspector with various useful property drawers",
"unity": "2019.2", "unity": "2019.2",