File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments