文档

Unity Engine

Unity Engine

EndTrace()

Stop tracing shader variants and graphics states encountered at runtime.
阅读时间1 分钟最后更新于 1 个月前

Definition

public void EndTrace()

Remarks

using UnityEngine;using UnityEngine.Rendering;public class EndTraceExample : MonoBehaviour{ public GraphicsStateCollection graphicsStateCollection; void Start() { graphicsStateCollection = new GraphicsStateCollection(); graphicsStateCollection.BeginTrace(); } void OnDestroy() { graphicsStateCollection.EndTrace(); }}