Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
Update README.md and LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
uurha committed May 4, 2023
1 parent a85eb8e commit 1f664dc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,27 @@ Better dropdown contains:
2. Fast navigation
3. Grouping

## Select Implementation
## Select Attribute

Provides possibility to select interface implementation in Unity Inspector.
Provides possibility to select interface implementation, enum value with better dropdown in Unity Inspector.<br>
Also supports **_flag_** enums.

Usage:

```c#
[SelectImplementation] [SerializeReference]
[Select] [SerializeReference]
private ISomeInterface someInterface;

[SelectImplementation] [SerializeReference]
[Select] [SerializeReference]
private SomeAbstractClass someAbstractClass;

[SelectImplementation(typeof(SomeAbstractClass)] [SerializeReference]
[Select(typeof(SomeAbstractClass)] [SerializeReference]
private List<SomeAbstractClass> someAbstractClasses;

[SelectImplementation(typeof(ISomeInterface))] [SerializeReference]
[Select(typeof(ISomeInterface))] [SerializeReference]
private List<ISomeInterface> someInterfaces;
```

## Select Enum

Provides possibility to select enum value with better dropdown.<br>
Also supports **_flag_** enums.

Usage:

```c#
[SelectEnum] [SerializeField]
[Select] [SerializeField]
private KeyCode keyCode;
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.uurha.betterattributes",
"displayName": "Better Attributes",
"version": "1.8.3",
"version": "1.8.4",
"unity": "2020.1",
"description": "Unity attributes, allows to serialize interfaces, draw handles for Vector3/Vector2/Quaternion/Bounds, create read only fields.",
"dependencies": {
Expand Down

0 comments on commit 1f664dc

Please sign in to comment.