Guest User

VertexSnapCustomEditor.cs

a guest
Aug 8th, 2016
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEditor;
  3. using System.Collections;
  4.  
  5. [CustomEditor(typeof(MeshFilter))]
  6. [CanEditMultipleObjects]
  7. public class VertexSnapCustomEditor : Editor {
  8.  
  9.     // Drawing with the Handles class only works from OnSceneGUI calls in Editor-classes,
  10.     // so we have to relay from one such class.
  11.     public void OnSceneGUI() {
  12.         VertexSnapCustom vsc = VertexSnapCustom.GetInstance ();
  13.         vsc.HandleOnSceneGUIDrawing ();
  14.     }
  15. }
Add Comment
Please, Sign In to add comment