Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     graphics = new CanvasGraphics();
     graphics.verticesDrawer = drawer;
     graphics.curveSmoothing = true;
     graphics.smoothDotLimit = -1f;
 }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        graphics = new CanvasGraphics();
        graphics.verticesDrawer = drawer;

        Draw();
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        graphics = new CanvasGraphics();

        if (!createChildDrawer)
        {
            if (verticesDrawer == null)
            {
                verticesDrawer = this.gameObject.AddComponent <CanvasQuadDrawer>();
                if (strokeTexture != null)
                {
                    verticesDrawer.texture_ = strokeTexture;
                }
            }
            graphics.verticesDrawer = verticesDrawer;
        }

        pointsList = new List <List <Vector3> >();
    }
Exemplo n.º 4
0
 // Use this for initialization
 void Awake()
 {
     graphics = new CanvasGraphics();
     graphics.verticesDrawer = drawer;
 }