docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor ScopedProfiler

    ScopedProfiler(string)

    Begins a new profiler sample. Same as Profiler.BeginSample.

    Declaration
    public ScopedProfiler(string name)
    Parameters
    Type Name Description
    string name

    A string to identify the sample in the Profiler window.

    ScopedProfiler(string, Object)

    Begins a new profiler sample. Same as Profiler.BeginSample.

    Declaration
    public ScopedProfiler(string name, Object targetObject)
    Parameters
    Type Name Description
    string name

    A string to identify the sample in the Profiler window.

    Object targetObject

    An object that provides context to the sample.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Friday, September 22, 2023