Resources are external content files that can be used by components. Before resources can be used in a project, they must first be imported via the Asset Browser.
The following resources types are supported by the different components:
Component | Resources | File Types |
---|---|---|
Bitmap | Bitmap images | .png,.jpg |
Shape | Shape images | .svg |
Text | Font files | .ttf |
Script | Lua files | .lua |
Sound | Wwise sound bank | .bnk |
These resources are attached to components via the Properties panel. Each component that uses a resource will display a resource field that accepts a specific type of resource as listed above.
If the resource is deleted from the project, the resource field will display an error. If a project is loaded with missing resources, then you will be presented a dialog that displays the list of broken resources.
Resources are also automatically watched by the editor, and any changes made to a resource file will be automatically updated in the editor. For example, a change made to a bitmap resource file will immediately update in the Viewport if the resource was previously being displayed.