Esempio n. 1
0
 void OnExternalToolStateDataChanged(ExternalToolStateData data)
 {
     if (m_CachedMeasureToolStateData != data.measureToolStateData)
     {
         m_MeasureToolButton.selected = data.measureToolStateData.toolState;
         m_CachedMeasureToolStateData = data.measureToolStateData;
     }
 }
Esempio n. 2
0
 private void OnExternalToolChanged(ExternalToolStateData data)
 {
     if (m_CachedMeasureToolStateData == null || m_CachedMeasureToolStateData != data.measureToolStateData)
     {
         m_SelectMode = (m_CachedToolState != null && m_CachedToolState.Value.activeTool == ToolType.SelectTool && data.measureToolStateData.toolState == false);
         m_CachedMeasureToolStateData = data.measureToolStateData;
     }
 }