Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SaveToVectorImage(VectorImage)

Saves the content of this Painter2D to a VectorImage object.
Read time 1 minuteLast updated 11 days ago

Definition

public bool SaveToVectorImage(VectorImage vectorImage)

Parameters

vectorImage

The VectorImage object that will be initialized with this painter. This object should not be null.

Returns

Type

Description

boolTrue if the VectorImage initialization succeeded. False otherwise.

Remarks

The size and content of the vector image will be determined from the bounding-box of the visible content of the painter object. Any offset of the visible content will not be saved in the vector image.