Example #1
0
        public void UpdateCurrentTool()
        {
            UnityEngine.Profiling.Profiler.BeginSample("SketchSurfacePanel.UpdateCurrentTool");
            m_UpdatedToolThisFrame = true;
            ActiveTool.UpdateTool();
            if (ActiveTool.ExitRequested())
            {
                // Requesting a tool exit puts us back at our default tool.
                EnableDefaultTool();
                ActiveTool.EatInput();

                // If we're currently loading, hide our default tool.
                if (App.Instance.IsLoading())
                {
                    PointerManager.m_Instance.RequestPointerRendering(false);
                }
            }
            UnityEngine.Profiling.Profiler.EndSample();
        }
Example #2
0
 public void EatToolsInput()
 {
     ActiveTool.EatInput();
 }