You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@ ScriptableObjectDropdown is an attribute for the Unity Inspector.
3
3
It is used for showing ScriptableObjects which are created in your project, in dropdown menu in Inspector.
4
4
5
5
# Usage Example
6
-
This is `ScriptableObject` class which you create object with it.
6
+
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`).
7
+
8
+
2. Create `ScriptableObject` class which you want to create specified object by that.
7
9
8
10
```cs
9
11
usingUnityEngine;
@@ -15,11 +17,11 @@ public class Block : ScriptableObject
15
17
}
16
18
```
17
19
18
-
Then you should put those created ScriptableObjects in `Resources` folder.
20
+
3. Put those created ScriptableObjects in `Resources` folder.
19
21
20
22

21
23
22
-
Now we want to use `ScriptableObjectDropdown` attribute. We can use this attribute in both `MonoBeahviour`and`ScriptableObject` derived classes.
24
+
4. Use `ScriptableObjectDropdown` attribute like this in `MonoBeahviour`or`ScriptableObject` derived classes.
0 commit comments