Skip to main content

UnityEditorLoggingSettings

A class in Root.Township, the global namespace.

Global settings asset for logging to the Unity editor console: on or off, and a level range.

Constructors​

MemberWhat it is
UnityEditorLoggingSettings()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

MemberWhat it is
bool IsLoggingWhether logs go to the Unity console in the editor. Copied to UnityConsoleLogTarget.IsLoggingInEditor.
2 private and internal fields
MemberWhat it is
private LoggingLevel maxLevelBacking field for MaxLevel.
private LoggingLevel minLevelBacking field for MinLevel.

Properties​

MemberWhat it is
LoggingLevel MaxLevel { get; }Highest log level shown.
LoggingLevel MinLevel { get; }Lowest log level shown.

Methods​

1 private and internal method
MemberWhat it is
private void OnValidate()Applies IsLogging to the Unity console log target when changed in the inspector.