docs.unity.cn
    Show / Hide Table of Contents

    Class DebugOverlay

    Utility class for debug overlay coordinates.

    Inheritance
    Object
    DebugOverlay
    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 DebugOverlay

    Properties

    overlaySize

    Current overlay size.

    Declaration
    public int overlaySize { get; }
    Property Value
    Type Description
    Int32

    x

    Current x coordinate.

    Declaration
    public int x { get; }
    Property Value
    Type Description
    Int32

    y

    Current y coordinate.

    Declaration
    public int y { get; }
    Property Value
    Type Description
    Int32

    Methods

    Next(Single)

    Increment coordinates to the next overlay and return the current overlay rect.

    Declaration
    public Rect Next(float aspect = 1F)
    Parameters
    Type Name Description
    Single aspect

    Aspect of the current overlay.

    Returns
    Type Description
    Rect

    Returns a rect of the current overlay.

    SetViewport(CommandBuffer)

    Setup the viewport for the current overlay.

    Declaration
    public void SetViewport(CommandBuffer cmd)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer used to setup viewport.

    StartOverlay(Int32, Int32, Int32, Int32)

    Start rendering overlay.

    Declaration
    public void StartOverlay(int initialX, int initialY, int overlaySize, int screenWidth)
    Parameters
    Type Name Description
    Int32 initialX

    Initial x position.

    Int32 initialY

    Initial y position.

    Int32 overlaySize

    Size of overlays between 0 and 1.

    Int32 screenWidth

    Width of the screen.

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    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