private void lineSketchObjectTest() { strokeSketchObject.AddControlPoint(new Vector3(-2, 1, 0)); strokeSketchObject.AddControlPoint(Vector3.one); strokeSketchObject.AddControlPoint(new Vector3(2, 2, 0)); strokeSketchObject.AddControlPoint(new Vector3(2, 1, 0)); //lineSketchObject.setLineDiameter(.7f); StartCoroutine(changeDiameter()); strokeSketchObject2.AddControlPoint(new Vector3(1, 0, 0)); strokeSketchObject2.AddControlPoint(new Vector3(2, 1, 1)); strokeSketchObject2.AddControlPoint(new Vector3(3, 2, 0)); strokeSketchObject2.minimumControlPointDistance = 2f; strokeSketchObject2.AddControlPointContinuous(new Vector3(3, 1, 0)); //GameObject selectionGO = new GameObject("sketchObjectSelection", typeof(SketchObjectSelection)); GameObject selectionGO = Instantiate(selectionPrefab); GameObject groupGO = new GameObject("sketchObjectGroup", typeof(SketchObjectGroup)); SketchObjectSelection selection = selectionGO.GetComponent <SketchObjectSelection>(); selection.AddToSelection(strokeSketchObject); selection.AddToSelection(strokeSketchObject2); selection.Activate(); StartCoroutine(deactivateSelection(selection)); }
public bool Execute() { return(StrokeSketchObject.AddControlPointContinuous(NewControlPoint)); }