Stop tracing shader variants and graphics states encountered at runtime.
using UnityEngine; using UnityEngine.Experimental.Rendering;
public class EndTraceExample : MonoBehaviour { public GraphicsStateCollection graphicsStateCollection;
void Start() { graphicsStateCollection = new GraphicsStateCollection(); graphicsStateCollection.BeginTrace(); }
void OnDestroy() { graphicsStateCollection.EndTrace(); } }