Exemple #1
0
 public void SetRectSelectionTool(ShapeEditorRectSelectionTool sers)
 {
     if (m_RectSelectionTool != null)
     {
         m_RectSelectionTool.RectSelect     -= SelectPointsInRect;
         m_RectSelectionTool.ClearSelection -= ClearSelectedPoints;
     }
     m_RectSelectionTool                 = sers;
     m_RectSelectionTool.RectSelect     += SelectPointsInRect;
     m_RectSelectionTool.ClearSelection += ClearSelectedPoints;
 }
        public SpriteOutlineModule(ISpriteEditor sem, IEventSystem es, IUndoSystem us, IAssetDatabase ad, IGUIUtility gu, IShapeEditorFactory sef, ITexture2D outlineTexture)
        {
            spriteEditorWindow = sem;
            undoSystem         = us;
            eventSystem        = es;
            assetDatabase      = ad;
            guiUtility         = gu;
            shapeEditorFactory = sef;
            m_OutlineTexture   = outlineTexture;

            m_ShapeSelectionUI = new ShapeEditorRectSelectionTool(gu);

            m_ShapeSelectionUI.RectSelect     += RectSelect;
            m_ShapeSelectionUI.ClearSelection += ClearSelection;
        }
Exemple #3
0
 public void OnDisable()
 {
     m_RectSelectionTool.RectSelect     -= SelectPointsInRect;
     m_RectSelectionTool.ClearSelection -= ClearSelectedPoints;
     m_RectSelectionTool = null;
 }