private void lineSketchObjectTest() { lineSketchObject.AddControlPoint(new Vector3(-2, 1, 0)); lineSketchObject.AddControlPoint(Vector3.one); lineSketchObject.AddControlPoint(new Vector3(2, 2, 0)); lineSketchObject.AddControlPoint(new Vector3(2, 1, 0)); //lineSketchObject.setLineDiameter(.7f); StartCoroutine(changeDiameter()); lineSketchObject2.AddControlPoint(new Vector3(1, 0, 0)); lineSketchObject2.AddControlPoint(new Vector3(2, 1, 1)); lineSketchObject2.AddControlPoint(new Vector3(3, 2, 0)); lineSketchObject2.minimumControlPointDistance = 2f; lineSketchObject2.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(lineSketchObject); selection.AddToSelection(lineSketchObject2); selection.Activate(); StartCoroutine(deactivateSelection(selection)); }
public bool Execute() { return(LineSketchObject.AddControlPointContinuous(NewControlPoint)); }