コード例 #1
0
    // Start is called before the first frame update
    void Start()
    {
        strokeSketchObject = Instantiate(StrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>();
        strokeSketchObject.SetStrokeDiameter(.5f);

        strokeSketchObject2 = Instantiate(defaults.LinearInterpolationStrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>();
        strokeSketchObject2.SetStrokeDiameter(.5f);
    }
コード例 #2
0
 // Start is called before the first frame update
 void Start()
 {
     strokeSketchObject = Instantiate(StrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>();
     strokeSketchObject.SetStrokeDiameter(.5f);
     //lineSketchObject2 = Instantiate(LineSketchObjectPrefab).GetComponent<LineSketchObject>();
     strokeSketchObject2 = Instantiate(defaults.LinearInterpolationStrokeSketchObjectPrefab).GetComponent <StrokeSketchObject>();
     patchSketchObject   = Instantiate(defaults.PatchSketchObjectPrefab).GetComponent <PatchSketchObject>();
     ribbonSketchObject  = Instantiate(defaults.RibbonSketchObjectPrefab).GetComponent <RibbonSketchObject>();
 }
コード例 #3
0
    IEnumerator changeDiameter()
    {
        yield return(new WaitForSeconds(5));

        strokeSketchObject.SetStrokeDiameter(.1f);
        yield return(new WaitForSeconds(2));

        strokeSketchObject.DeleteControlPoint();
        strokeSketchObject.DeleteControlPoint();
    }
コード例 #4
0
    IEnumerator changeDiameter()
    {
        yield return(new WaitForSeconds(5));

        strokeSketchObject.SetStrokeDiameter(.1f);
    }