TypeRef
A custom serializable System.Type
field.
Select a type in an assembly list
public class MyScriptable : ScriptableObject {
[TypeRefConfig.Assemblies("UnityEngine", ...)] public TypeRef Type;
}
Select a type in all assemblies but ignore list
public class MyScriptable : ScriptableObject {
[TypeRefConfig.Ignore("UnityEngine", ...)] public TypeRef Type;
}
Select a type in a list
public class MyScriptable : ScriptableObject {
[TypeRefConfig.Types("UnityEngine.Transform", ...)] public TypeRef Type;
}
Select a type from interface or inheritance
public class MyScriptable : ScriptableObject {
[TypeRefConfig.Inherit(typeof(IStat))] public TypeRef Type;
}