ScriptableData/Samples~/BaseTypes/Example.md
2021-12-22 12:53:49 +01:00

460 B

Types can be anything: classes, structs etc. Replace {TYPE} with your type.

Data:

using UnityEngine;

namespace ScriptableData
{
	[CreateAssetMenu(menuName = "ScriptableData/Data/{TYPE}", order = 146)]
	public class SD{TYPE} : ScriptableData<{TYPE}> { }
}

Events:

using UnityEngine;

namespace ScriptableData
{
	[CreateAssetMenu(menuName = "ScriptableData/Event/{TYPE}", order = 147)]
	public class SE{TYPE} : ScriptableEvent<{TYPE}> {}
}