Adding a component
Simplify the graphics creation process by adding components to the graphic instead of drawing all the drawing objects yourself.
Adding components of the same type creates a reference between them and they share the same definition. To add a component without a reference, hold CTRL while dragging.
To add a component:
- Open Graphics Editor.
- View > Layers > select a layer.
- Components > select a category.
- Select a component category and a component.
- Drag the component to the work area. To add a component without a reference to other components of the same type, hold the CTRL key while dragging.
- Enter a name in the Properties pane. A name must be entered if you want to bind the object.
- Adjust the appearance of the component using the Options toolbar or in the Properties pane.
- On the File menu, click Save.
NOTE:
When adding a component from the Library, two elements are added to the TGML document:- A <Use> element is added as a reference to the component. The <Use> element and its configured attributes are drawn and animated on the screen when running the solution in the browser.
- A <Component> definition is added to the document in a <Definitions> sub-tree.
Editing the <Component> definition from within the TGML document is not supported. For more information on editing components, see Adding custom components.