We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2455170 commit d09579aCopy full SHA for d09579a
README.md
@@ -7,13 +7,16 @@ Load Scriptable Objects via code
7
Your ```ScriptableObject``` must implement ```ILoadable``` interface.
8
9
```csharp
10
- [CreateAssetMenu(menuName = "Game/Configs/Player")]
11
- public class PlayerConfig : ScriptableObject, ILoadable
12
- {
13
- [SerializeField] private float _startHealth = 100f;
+using ToolBox.Loader;
+using UnityEngine;
14
15
- public float StartHealth => _startHealth;
16
- }
+[CreateAssetMenu(menuName = "Game/Configs/Player")]
+public class PlayerConfig : ScriptableObject, ILoadable
+{
+ [SerializeField] private float _startHealth = 100f;
17
+
18
+ public float StartHealth => _startHealth;
19
+}
20
```
21
22
Now you need to create an asset.
0 commit comments