Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ATHellboy committed Jun 15, 2019
2 parents a14dac4 + 49b81ca commit 78ac528
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ ScriptableObjectDropdown is an attribute for the Unity Inspector.
It is used for showing ScriptableObjects which are created in your project, in dropdown menu in Inspector.

# Usage Example
This is `ScriptableObject` class which you create object with it.
1. Clone this repository or download the latest [release package available](https://github.com/ATHellboy/ScriptableObjectDropdown/releases) (There isn't an example folder in `.unitypackage`).

2. Create `ScriptableObject` class which you want to create specified object by that.

```cs
using UnityEngine;
Expand All @@ -15,11 +17,11 @@ public class Block : ScriptableObject
}
```

Then you should put those created ScriptableObjects in `Resources` folder.
3. Put those created ScriptableObjects in `Resources` folder.

![](Images/Resources.PNG)

Now we want to use `ScriptableObjectDropdown` attribute. We can use this attribute in both `MonoBeahviour` and `ScriptableObject` derived classes.
4. Use `ScriptableObjectDropdown` attribute like this in `MonoBeahviour` or `ScriptableObject` derived classes.

**MonoBehavior**

Expand Down

0 comments on commit 78ac528

Please sign in to comment.