Created
November 15, 2019 19:55
-
-
Save inertiave/eb34d73b9004fd1c53b123ec927583fd to your computer and use it in GitHub Desktop.
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 enum EReadOnlyType { | |
FULLY_DISABLED, | |
EDITABLE_RUNTIME, | |
EDITABLE_EDITOR, | |
} | |
public class ReadOnlyAttribute : UnityEngine.PropertyAttribute { | |
public readonly EReadOnlyType runtimeOnly; | |
public ReadOnlyAttribute(EReadOnlyType runtimeOnly = EReadOnlyType.FULLY_DISABLED) | |
{ | |
this.runtimeOnly = runtimeOnly; | |
} | |
} | |
public class BeginReadOnlyAttribute : UnityEngine.PropertyAttribute { } | |
public class EndReadOnlyAttribute : UnityEngine.PropertyAttribute { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment