Skip to main content

ReadOnlyAttribute

A class in Alta.Attributes, the global namespace.

Inspector attribute that shows a field as read only, with separate modes for in and out of play mode.

Constructors​

MemberWhat it is
ReadOnlyAttribute(ReadOnlyMode mode = 1)Creates a ReadOnlyAttribute from outOfPlayMode and inPlayMode.
ReadOnlyAttribute(ReadOnlyMode outOfPlayMode, ReadOnlyMode inPlayMode)Creates a ReadOnlyAttribute from outOfPlayMode and inPlayMode.

Properties​

MemberWhat it is
ReadOnlyMode InPlayMode { get; private set; }Read-only mode used while in play mode.
ReadOnlyMode OutOfPlayMode { get; private set; }Read-only mode used outside play mode.