Aim: To make right trigger draw, left trigger delete
Open VR pawn in VR template, choose Trigger left and Right nodes disconnect from default
Create Event Tick node
Add following variable: Previouslocation, Distance, DrawingSplines, LastPoint:
Set Right trigger as follow:
Set the gate node for right trigger pressed and released, and the distance setting after previous location:
Continue the graph, set Static Mesh to Linesegmentcylinder on Add Spline Mesh Component node:
Continue (set End position):
Continue (set Start point, greater value and branch T/F, to determine whether it’s a new part drawing or the same drawing altogether):
Clear off splines with left trigger controller:
Remark: Destroy component actor created by drag from array element from for each loop