private void Start() { m_outlineEffect = Camera.gameObject.AddComponent <OutlineEffect>(); m_editor = IOC.Resolve <IRTE>(); TryToAddRenderers(m_editor.Selection); m_editor.Selection.SelectionChanged += OnRuntimeEditorSelectionChanged; RTEComponent rteComponent = GetComponentInParent <RTEComponent>(); if (rteComponent != null) { m_sceneWindow = rteComponent.Window; if (m_sceneWindow != null) { m_sceneWindow.IOCContainer.RegisterFallback <IOutlineManager>(this); } } if (RenderPipelineInfo.Type != RPType.Standard) { Debug.Log("OutlineManager is not supported"); Destroy(this); } }