文档

Unity Engine

Unity Engine

DrawVectorImage

Draws a VectorImage asset.
阅读时间1 分钟最后更新于 1 个月前

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
.