Glue supports creating objects of type ShapeCollection. You can create ShapeCollection objects two ways:
- From a .shcx file. To do this, first you must create a .schx file. For information on creating a ShapeCollection file, see this page. Once you have a ShapeCollection file, you can create an object using the “Entire File” option. For information on this, see this page.
- With no backing file. To do this:
- Right-click on Objects under a Screen or Entity
- Select “Add Object”
- Verify that “FlatRedBall or Custom Type” is selected.
- Select “ShapeCollection”
- Click OK
Adding Shapes to a ShapeCollection in Glue
ShapeCollections which are defined in Glue can have shapes added manually. The ShapeCollection serves as a “list” of shapes, but unlike normal lists in Glue, the ShapeCollection can contain multiple types of objects:
ShapeCollection in code
For information on how to work with a ShapeCollection in code, see the ShapeCollection page.