Created
June 23, 2020 09:06
-
-
Save MrMMatricks/3e965169e447a13ce54c0c3bd8dc7eea to your computer and use it in GitHub Desktop.
OnInspectorInit Problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StyledMaterials : ScriptableObject | |
{ | |
[SerializeField] | |
private Styles styles; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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