UnityEditor.MaterialEditor.OnSceneDrag C# (CSharp) Method

OnSceneDrag() private method

private OnSceneDrag ( SceneView sceneView ) : void
sceneView SceneView
return void
        internal void OnSceneDrag(SceneView sceneView)
        {
            Event current = Event.current;
            if (current.type != EventType.Repaint)
            {
                int materialIndex = -1;
                GameObject go = HandleUtility.PickGameObject(current.mousePosition, out materialIndex);
                if (EditorMaterialUtility.IsBackgroundMaterial(this.target as Material))
                {
                    this.HandleSkybox(go, current);
                }
                else if ((go != null) && (go.GetComponent<Renderer>() != null))
                {
                    this.HandleRenderer(go.GetComponent<Renderer>(), materialIndex, current);
                }
            }
        }
MaterialEditor