Exemple #1
0
 private static void BeginHandles()
 {
     Handles.Init();
     if (Event.current.type == EventType.Layout)
     {
         s_NearestControl  = 0;
         s_NearestDistance = 5f;
     }
     Handles.lighting     = true;
     Handles.color        = Color.white;
     s_CustomPickDistance = 5f;
     Handles.Internal_SetCurrentCamera(null);
     EditorGUI.s_DelayedTextEditor.BeginGUI();
 }
		private static void BeginHandles()
		{
			Handles.Init();
			EventType type = Event.current.type;
			if (type == EventType.Layout)
			{
				HandleUtility.s_NearestControl = 0;
				HandleUtility.s_NearestDistance = 5f;
			}
			Handles.lighting = true;
			Handles.color = Color.white;
			Handles.zTest = CompareFunction.Always;
			HandleUtility.s_CustomPickDistance = 5f;
			Handles.Internal_SetCurrentCamera(null);
			EditorGUI.s_DelayedTextEditor.BeginGUI();
		}
Exemple #3
0
 internal static void BeginHandles()
 {
     Handles.Init();
     switch (Event.current.type)
     {
     case EventType.Layout:
         s_NearestControl  = 0;
         s_NearestDistance = kPickDistance;
         break;
     }
     Handles.lighting     = true;
     Handles.color        = Color.white;
     Handles.zTest        = CompareFunction.Always;
     s_CustomPickDistance = kPickDistance;
     Handles.Internal_SetCurrentCamera(null);
     EditorGUI.s_DelayedTextEditor.BeginGUI();
 }