Skip to content

Commit 916c12a

Browse files
committed
Updated readme
1 parent 70bf67d commit 916c12a

5 files changed

Lines changed: 13 additions & 2 deletions

File tree

24.3 KB
Loading
25.4 KB
Loading
32.1 KB
Loading
-33.2 KB
Binary file not shown.

‎README.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,19 @@ public class Fruit : ScriptableObject
113113
}
114114
```
115115

116-
In the image below you can find how above code looks in the Inspector:
117-
![alt text](Documentation~/Images/Inspector-FruitExample.png "ScriptableObject Container displayed in the Inspector")
116+
When you create the ```FruitContainer``` asset via "Assets/Create/FruitContainer" it displays an empty ScriptableObjectContainer in
117+
a similar manner as a GameObject without Components.
118+
119+
![alt text](Documentation~/Images/Inspector-FruitExample-1.png "ScriptableObject Container")
120+
121+
You can then add sub-assets via the "Add Object" button. The menu displays all ScriptableObject that have been added to the
122+
container via the ```CreateSubAssetMenu``` attribute.
123+
124+
![alt text](Documentation~/Images/Inspector-FruitExample-2.png "ScriptableObject Container")
125+
126+
After adding the sub-asset it's shown in the Inspector as demonstrated in the image below.
127+
128+
![alt text](Documentation~/Images/Inspector-FruitExample-3.png "ScriptableObject Container")
118129

119130

120131
## CreateSubAssetMenuAttribute

0 commit comments

Comments
 (0)