StartEditing() 공개 메소드

public StartEditing ( Collider2D collider ) : void
collider UnityEngine.Collider2D
리턴 void
        void OnActiveToolChanged()
        {
            var collider = target as Collider2D;

            if (EditorTools.EditorTools.IsActiveTool(this) && IsAvailable() && collider)
            {
                polyUtility.StartEditing(collider);
            }
        }
 void OnActiveToolChanged()
 {
     if (EditorTools.EditorTools.IsActiveTool(this))
     {
         m_PolyUtility.StartEditing(target as Collider2D);
     }
 }
 void OnActiveToolChanged()
 {
     // We don't support multi-selection editing
     if (EditorTools.EditorTools.IsActiveTool(this) && target != null)
     {
         polyUtility.StartEditing(target as Collider2D);
     }
 }
예제 #4
0
        protected override void OnEditStart()
        {
            // We don't support multiselection editing
            if (target == null)
            {
                return;
            }

            m_PolyUtility.StartEditing(target as Collider2D);
        }
        void TryBeginEditing()
        {
            var collider = target as EdgeCollider2D;

            if (EditorTools.EditorTools.IsActiveTool(this) && IsAvailable() && collider)
            {
                m_PolyUtility.StartEditing(target as Collider2D);
                m_AdjacentEdgeUtility.StartEditing(target as EdgeCollider2D);
            }
        }
 protected override void OnEditStart()
 {
     m_PolyUtility.StartEditing(target as Collider2D);
 }