DrawVectorImage
Draws a VectorImage asset.
Read time 1 minuteLast updated 6 days ago
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