예제 #1
0
        void MoveItemRequested(Blackboard blackboard, int newIndex, VisualElement visualElement)
        {
            var property = visualElement.userData as IShaderProperty;

            if (property == null)
            {
                return;
            }
            m_Graph.MoveShaderProperty(property, newIndex);
        }
예제 #2
0
        void MoveItemRequested(Blackboard blackboard, int newIndex, VisualElement visualElement)
        {
            var property = visualElement.userData as IShaderProperty;

            if (property == null)
            {
                return;
            }
            m_Graph.owner.RegisterCompleteObjectUndo("Move Property");
            m_Graph.MoveShaderProperty(property, newIndex);
        }