private void OnEnable() { if (BeamGeometry.IsUsingCustomRenderPipeline()) { RenderPipelineManager.beginCameraRendering += new Action <ScriptableRenderContext, Camera>(this.OnBeginCameraRendering); } }
private void OnEnable() { if (!BeamGeometry.IsUsingCustomRenderPipeline()) { return; } RenderPipeline.add_beginCameraRendering(new Action <Camera>(this.OnBeginCameraRendering)); }
private void OnWillRenderObject() { if (!BeamGeometry.IsUsingCustomRenderPipeline()) { Camera camera = Camera.current; if (camera != null) { this.UpdateCameraRelatedProperties(camera); } } }
private void OnWillRenderObject() { if (BeamGeometry.IsUsingCustomRenderPipeline()) { return; } Camera current = Camera.get_current(); if (!Object.op_Inequality((Object)current, (Object)null)) { return; } this.UpdateCameraRelatedProperties(current); }