SvgsModule
Example
//==============================================================================
// The following example demonstrates how to bind an SVG image to a vector
// object.
//
// Project setup:
// - Insert a vector object
//==============================================================================
// Load in the required modules
const Scene = require('Scene');
const Svgs = require('Svgs');
// Locate the SVG file in the Assets
const mySvg = Svgs.get('mySvg');
// Locate the vector object in the Scene
const vectorObject = Scene.root.find('vectorObject0');
// Bind the Svg to the vector object
vectorObject.svg = mySvg;Properties
Methods
Classes
Last updated
Was this helpful?