docs.unity.cn
    Show / Hide Table of Contents

    Class DebugDisplaySettings<T>

    Templated class for IDebugDisplaySettings

    Inheritance
    Object
    DebugDisplaySettings<T>
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Rendering
    Syntax
    public abstract class DebugDisplaySettings<T> : IDebugDisplaySettings where T : IDebugDisplaySettings, new()
    Type Parameters
    Name Description
    T

    Fields

    m_Settings

    The set of IDebugDisplaySettingsData containing the settings for this debug display

    Declaration
    protected readonly HashSet<IDebugDisplaySettingsData> m_Settings
    Field Value
    Type Description
    HashSet<IDebugDisplaySettingsData>

    Properties

    AreAnySettingsActive

    Returns true if any of the debug settings are currently active.

    Declaration
    public virtual bool AreAnySettingsActive { get; }
    Property Value
    Type Description
    Boolean

    Instance

    The singleton instance that contains the current settings of Rendering Debugger.

    Declaration
    public static T Instance { get; }
    Property Value
    Type Description
    T

    IsLightingActive

    Returns true if lighting is active for current state of debug settings.

    Declaration
    public virtual bool IsLightingActive { get; }
    Property Value
    Type Description
    Boolean

    IsPostProcessingAllowed

    Checks whether the current state of these settings allows post-processing.

    Declaration
    public virtual bool IsPostProcessingAllowed { get; }
    Property Value
    Type Description
    Boolean

    Methods

    Add<TData>(TData)

    Adds a new to this settings

    Declaration
    protected TData Add<TData>(TData newData)
        where TData : IDebugDisplaySettingsData
    Parameters
    Type Name Description
    TData newData

    The to be added

    Returns
    Type Description
    TData

    The type of that has been added

    Type Parameters
    Name Description
    TData

    The type of to be added

    ForEach(Action<IDebugDisplaySettingsData>)

    Executes an action for each element

    Declaration
    public void ForEach(Action<IDebugDisplaySettingsData> onExecute)
    Parameters
    Type Name Description
    Action<IDebugDisplaySettingsData> onExecute
    Implements
    IDebugDisplaySettings.ForEach(Action<IDebugDisplaySettingsData>)

    Reset()

    Reset the stored debug settings

    Declaration
    public virtual void Reset()
    Implements
    IDebugDisplaySettings.Reset()

    TryGetScreenClearColor(ref Color)

    Attempts to get the color that should be used to clear the screen according to current debug settings.

    Declaration
    public virtual bool TryGetScreenClearColor(ref Color color)
    Parameters
    Type Name Description
    Color color

    A reference to the screen clear color to use.

    Returns
    Type Description
    Boolean

    True if the color reference was updated, and false otherwise.

    Explicit Interface Implementations

    IDebugDisplaySettings.Add(IDebugDisplaySettingsData)

    Adds a IDebugDisplaySettingsData to this instance of IDebugDisplaySettings

    Declaration
    IDebugDisplaySettingsData IDebugDisplaySettings.Add(IDebugDisplaySettingsData newData)
    Parameters
    Type Name Description
    IDebugDisplaySettingsData newData

    The IDebugDisplaySettingsData to be added to this settings

    Returns
    Type Description
    IDebugDisplaySettingsData IDebugDisplaySettingsData
    Implements
    IDebugDisplaySettings.Add(IDebugDisplaySettingsData)

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023