Beispiel #1
0
        protected override void Awake()
        {
            base.Awake();
            _lateUpdateListener = gameObject.AddComponent <ProfilerLateUpdateListener>();
            _lateUpdateListener.OnLateUpdate = OnLateUpdate;

            CachedGameObject.hideFlags = HideFlags.NotEditable;
            CachedTransform.SetParent(Hierarchy.Get("SRDebugger"), true);

            //RenderPipeline.beginFrameRendering += RenderPipelineOnBeginFrameRendering;
            StartCoroutine(EndOfFrameCoroutine());
        }
Beispiel #2
0
        protected override void Awake()
        {
            base.Awake();
            _lateUpdateListener = gameObject.AddComponent <ProfilerLateUpdateListener>();
            _lateUpdateListener.OnLateUpdate = OnLateUpdate;

            CachedGameObject.hideFlags = HideFlags.NotEditable;
            CachedTransform.SetParent(Hierarchy.Get("SRDebugger"), true);

            Camera.onPreRender  += OnCameraPreRender;
            Camera.onPostRender += OnCameraPostRender;
        }
Beispiel #3
0
        protected override void Awake()
        {
            base.Awake();
            _lateUpdateListener = gameObject.AddComponent <ProfilerLateUpdateListener>();
            _lateUpdateListener.OnLateUpdate = OnLateUpdate;

            CachedGameObject.hideFlags = HideFlags.NotEditable;
            CachedTransform.SetParent(Hierarchy.Get("SRDebugger"), true);

#if UNITY_2019_3_OR_NEWER
            UnityEngine.Rendering.RenderPipelineManager.beginFrameRendering += RenderPipelineOnBeginFrameRendering2;
#else
            RenderPipeline.beginFrameRendering += RenderPipelineOnBeginFrameRendering;
#endif

            StartCoroutine(EndOfFrameCoroutine());
        }