Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DrawVectorImage

Draws a VectorImage asset.
Read time 1 minuteLast updated 6 days ago

Definition

DrawVectorImage(VectorImage, Vector2, Angle, Vector2)

Draws a VectorImage asset.
public void DrawVectorImage(VectorImage vectorImage, Vector2 offset, Angle rotationAngle, Vector2 scale)

Parameters

vectorImage

The vector image to draw.

offset

The position offset where to draw the vector image.

rotationAngle

The rotation of the vector image.

scale

The scale of the vector image

DrawVectorImage(VectorImage, Vector2, Angle, Vector2, int)

Draws a VectorImage asset and tags the resulting draw with a user-defined identifier surfaced on
DrawData.userData
in mesh modifiers.
public void DrawVectorImage(VectorImage vectorImage, Vector2 offset, Angle rotationAngle, Vector2 scale, int userData)

Parameters

vectorImage

The vector image to draw.

offset

The position offset where to draw the vector image.

rotationAngle

The rotation of the vector image.

scale

The scale of the vector image

userData

User-defined identifier surfaced on
DrawData.userData
.