Documentation

Unity Engine

Download Unity

Unity Engine

BeginTrace()

Starts tracing shader variants, compute shader variants, and graphics states encountered at runtime.
Read time 1 minuteLast updated 20 hours ago

Definition

public bool BeginTrace()

Returns

Type

Description

boolTrue if tracing successfully started, false otherwise.

Remarks

Tracing cannot begin if any collection is already currently tracing.
using UnityEngine;using UnityEngine.Rendering;public class BeginTraceExample : MonoBehaviour{ public GraphicsStateCollection graphicsStateCollection; void Start() { graphicsStateCollection = new GraphicsStateCollection(); graphicsStateCollection.BeginTrace(); } void OnDestroy() { graphicsStateCollection.EndTrace(); }}