Skip to content

Instantly share code, notes, and snippets.

@MrMMatricks
Created June 23, 2020 09:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrMMatricks/3e965169e447a13ce54c0c3bd8dc7eea to your computer and use it in GitHub Desktop.
Save MrMMatricks/3e965169e447a13ce54c0c3bd8dc7eea to your computer and use it in GitHub Desktop.
OnInspectorInit Problem
public class StyledMaterials : ScriptableObject
{
[SerializeField]
private Styles styles;
}
[OnInspectorInit("CheckStyles")]
[CreateAssetMenu(fileName = "Styles", menuName = "Styles", order = 33)]
public class Styles : ScriptableObject
{
public void CheckStyles()
{
.....
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment