mirror of
https://github.com/maxartz15/ScriptableData.git
synced 2024-11-14 10:45:34 +01:00
24 lines
460 B
Markdown
24 lines
460 B
Markdown
|
Types can be anything: classes, structs etc.
|
||
|
Replace {TYPE} with your type.
|
||
|
|
||
|
Data:
|
||
|
```C#
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace ScriptableData
|
||
|
{
|
||
|
[CreateAssetMenu(menuName = "ScriptableData/Data/{TYPE}", order = 146)]
|
||
|
public class SD{TYPE} : ScriptableData<{TYPE}> { }
|
||
|
}
|
||
|
```
|
||
|
|
||
|
Events:
|
||
|
```C#
|
||
|
using UnityEngine;
|
||
|
|
||
|
namespace ScriptableData
|
||
|
{
|
||
|
[CreateAssetMenu(menuName = "ScriptableData/Event/{TYPE}", order = 147)]
|
||
|
public class SE{TYPE} : ScriptableEvent<{TYPE}> {}
|
||
|
}
|
||
|
```
|