DrawVectorImage
Draws a VectorImage asset.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
DrawVectorImage(VectorImage, Vector2, Angle, Vector2)
Draws a VectorImage asset.
public void DrawVectorImage(VectorImage vectorImage, Vector2 offset, Angle rotationAngle, Vector2 scale)
Parameters
The vector image to draw.
The position offset where to draw the vector image.
The rotation of the vector image.
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 in mesh modifiers.
DrawData.userDatapublic void DrawVectorImage(VectorImage vectorImage, Vector2 offset, Angle rotationAngle, Vector2 scale, int userData)
Parameters
The vector image to draw.
The position offset where to draw the vector image.
The rotation of the vector image.
The scale of the vector image
User-defined identifier surfaced on .
DrawData.userData