docs.unity.cn
    Show / Hide Table of Contents

    Class DebugDisplaySettingsVolume

    Debug Dispaly Settings Volume

    Inheritance
    Object
    DebugDisplaySettingsVolume
    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 class DebugDisplaySettingsVolume : IDebugDisplaySettingsData, IDebugDisplaySettingsQuery

    Constructors

    DebugDisplaySettingsVolume(IVolumeDebugSettings2)

    Constructor with the settings

    Declaration
    public DebugDisplaySettingsVolume(IVolumeDebugSettings2 volumeDebugSettings)
    Parameters
    Type Name Description
    IVolumeDebugSettings2 volumeDebugSettings

    Properties

    AreAnySettingsActive

    Checks whether ANY of the debug settings are currently active.

    Declaration
    public bool AreAnySettingsActive { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IDebugDisplaySettingsQuery.AreAnySettingsActive

    IsLightingActive

    Checks whether lighting is active for these settings.

    Declaration
    public bool IsLightingActive { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IDebugDisplaySettingsQuery.IsLightingActive

    IsPostProcessingAllowed

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

    Declaration
    public bool IsPostProcessingAllowed { get; }
    Property Value
    Type Description
    Boolean
    Implements
    IDebugDisplaySettingsQuery.IsPostProcessingAllowed

    volumeDebugSettings

    Current volume debug settings.

    Declaration
    public IVolumeDebugSettings2 volumeDebugSettings { get; }
    Property Value
    Type Description
    IVolumeDebugSettings2

    Methods

    CreatePanel()

    Creates the panel

    Declaration
    public IDebugDisplaySettingsPanelDisposable CreatePanel()
    Returns
    Type Description
    IDebugDisplaySettingsPanelDisposable

    The panel

    Implements
    IDebugDisplaySettingsData.CreatePanel()

    TryGetScreenClearColor(ref Color)

    Attempts to get the color used to clear the screen for this debug setting.

    Declaration
    public 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 we updated the color, "false" if we didn't change anything.

    Implements
    IDebugDisplaySettingsQuery.TryGetScreenClearColor(ref Color)

    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 31 July 2023