Skip to content

Commit f7ebd67

Browse files
committed
feat: disallow delete graph elements
upgrade version code to 1.0.1
1 parent 37aef99 commit f7ebd67

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Editor/Scripts/GraphView/PlayableGraphView.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ public PlayableGraphView()
2222
//this.AddManipulator(new SelectionDragger());
2323
this.AddManipulator(new RectangleSelector());
2424
SetupZoom(ContentZoomer.DefaultMinScale, ContentZoomer.DefaultMaxScale);
25+
26+
deleteSelection = OnDeleteSelectionEvent;
2527
}
2628

2729
public void Update(PlayableGraph playableGraph)
@@ -136,5 +138,10 @@ private void CalculateLayout()
136138
origin.y += treeSize.y + GraphViewNode.VerticalSpace;
137139
}
138140
}
141+
142+
private void OnDeleteSelectionEvent(string operationName, AskUser askuser)
143+
{
144+
// disallow delete graph elements
145+
}
139146
}
140147
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.greenbamboogames.playablegraphmonitor",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"displayName": "PlayableGraphMonitor!",
55
"description": "PlayableGraph monitor.",
66
"unity": "2019.4",

0 commit comments

Comments
 (0)