Class FrameTimeGraph | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class FrameTimeGraph

    Inheritance
    System.Object
    FrameTimeGraph
    Namespace: UnityEditor.Performance.ProfileAnalyzer
    Syntax
    public class FrameTimeGraph

    Constructors

    FrameTimeGraph(Draw2D, Units, Color, Color, Color, Color, Color, Color, Color, Color, Color)

    Declaration
    public FrameTimeGraph(Draw2D draw2D, Units units, Color background, Color backgroundSelected, Color barColor, Color barSelected, Color barMarker, Color barMarkerSelected, Color barThreads, Color barThreadsSelected, Color colorGridlines)
    Parameters
    Type Name Description
    Draw2D draw2D
    Units units
    Color background
    Color backgroundSelected
    Color barColor
    Color barSelected
    Color barMarker
    Color barMarkerSelected
    Color barThreads
    Color barThreadsSelected
    Color colorGridlines

    Methods

    ClearDragSelection()

    Declaration
    public void ClearDragSelection()

    Draw(Rect, ProfileAnalysis, List<Int32>, Single, Int32, String, Int32, ProfileAnalysis)

    Declaration
    public void Draw(Rect rect, ProfileAnalysis analysis, List<int> selectedFrameOffsets, float yMax, int displayOffset, string selectedMarkerName, int maxFrames = 0, ProfileAnalysis fullAnalysis = null)
    Parameters
    Type Name Description
    Rect rect
    ProfileAnalysis analysis
    System.Collections.Generic.List<System.Int32> selectedFrameOffsets
    System.Single yMax
    System.Int32 displayOffset
    System.String selectedMarkerName
    System.Int32 maxFrames
    ProfileAnalysis fullAnalysis

    GetDataRange()

    Declaration
    public float GetDataRange()
    Returns
    Type Description
    System.Single

    GetPairedWith()

    Declaration
    public FrameTimeGraph GetPairedWith()
    Returns
    Type Description
    FrameTimeGraph

    GetSelectedRange(List<Int32>, out Int32, out Int32, out Int32, out Int32)

    Declaration
    public void GetSelectedRange(List<int> frameOffsets, out int firstDataOffset, out int lastDataOffset, out int firstFrameOffset, out int lastFrameOffset)
    Parameters
    Type Name Description
    System.Collections.Generic.List<System.Int32> frameOffsets
    System.Int32 firstDataOffset
    System.Int32 lastDataOffset
    System.Int32 firstFrameOffset
    System.Int32 lastFrameOffset

    GetYAxisRange(Single)

    Declaration
    public float GetYAxisRange(float yMax)
    Parameters
    Type Name Description
    System.Single yMax
    Returns
    Type Description
    System.Single

    HasData()

    Declaration
    public bool HasData()
    Returns
    Type Description
    System.Boolean

    HasDragRegion()

    Declaration
    public bool HasDragRegion()
    Returns
    Type Description
    System.Boolean

    IsEnabled()

    Declaration
    public bool IsEnabled()
    Returns
    Type Description
    System.Boolean

    PairWith(FrameTimeGraph)

    Declaration
    public void PairWith(FrameTimeGraph otherFrameTimeGraph)
    Parameters
    Type Name Description
    FrameTimeGraph otherFrameTimeGraph

    ProcessInput(Rect, List<Int32>, Int32)

    Declaration
    public FrameTimeGraph.State ProcessInput(Rect rect, List<int> selectedFrameOffsets, int maxFrames = 0)
    Parameters
    Type Name Description
    Rect rect
    System.Collections.Generic.List<System.Int32> selectedFrameOffsets
    System.Int32 maxFrames
    Returns
    Type Description
    FrameTimeGraph.State

    Reset()

    Declaration
    public void Reset()

    SelectGrow(Int32)

    Declaration
    public void SelectGrow(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SelectGrowLeft(Int32)

    Declaration
    public void SelectGrowLeft(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SelectGrowRight(Int32)

    Declaration
    public void SelectGrowRight(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SelectNext(Int32)

    Declaration
    public void SelectNext(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SelectPrevious(Int32)

    Declaration
    public void SelectPrevious(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SelectShrink(Int32)

    Declaration
    public void SelectShrink(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SelectShrinkLeft(Int32)

    Declaration
    public void SelectShrinkLeft(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SelectShrinkRight(Int32)

    Declaration
    public void SelectShrinkRight(int step)
    Parameters
    Type Name Description
    System.Int32 step

    SetData(List<FrameTimeGraph.Data>)

    Declaration
    public void SetData(List<FrameTimeGraph.Data> values)
    Parameters
    Type Name Description
    System.Collections.Generic.List<FrameTimeGraph.Data> values

    SetDragSelection(Int32, Int32)

    Declaration
    public void SetDragSelection(int startOffset, int endOffset)
    Parameters
    Type Name Description
    System.Int32 startOffset
    System.Int32 endOffset

    SetEnabled(Boolean)

    Declaration
    public void SetEnabled(bool enabled)
    Parameters
    Type Name Description
    System.Boolean enabled

    SetGlobalSettings(FrameTimeGraphGlobalSettings)

    Declaration
    public static void SetGlobalSettings(FrameTimeGraphGlobalSettings globalSettings)
    Parameters
    Type Name Description
    FrameTimeGraphGlobalSettings globalSettings

    SetRangeCallback(FrameTimeGraph.SetRange)

    Declaration
    public void SetRangeCallback(FrameTimeGraph.SetRange setRange)
    Parameters
    Type Name Description
    FrameTimeGraph.SetRange setRange

    SetUnits(Units)

    Declaration
    public void SetUnits(Units units)
    Parameters
    Type Name Description
    Units units

    ToggleShowFrameLines()

    Declaration
    public void ToggleShowFrameLines()

    ToggleShowFrameLinesText()

    Declaration
    public void ToggleShowFrameLinesText()

    ToggleShowOrderedByFrameDuration()

    Declaration
    public void ToggleShowOrderedByFrameDuration()

    ToggleShowSelectedMarker()

    Declaration
    public void ToggleShowSelectedMarker()

    ToggleShowThreads()

    Declaration
    public void ToggleShowThreads()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023