public void Unregister(Streaming.HLODControllerBase controller) { if (m_activeControllers != null) { m_activeControllers.Remove(controller); } }
public void Register(Streaming.HLODControllerBase controller) { if (m_activeControllers == null) { m_activeControllers = new List <Streaming.HLODControllerBase>(); if (IsSRP) { RenderPipelineManager.beginCameraRendering += OnPreCull; } else { Camera.onPreCull += OnPreCull; } } m_activeControllers.Add(controller); }