ReadOnlyWhenPlayingAttribute - Qkrisi/ktanemodkit GitHub Wiki

ReadOnlyWhenPlayingAttribute

public class ReadOnlyWhenPlayingAttribute : PropertyAttribute

Adding this property to a serialized field will make it read-only in the Unity Inspector when the editor is in play mode.