Templates & Datasheets
Onirix provides this feature to include any kind of extra information for your experiences, you can later consume from a custom app through Onirix SDK.
Usually, when creating a new Web AR experience, communication to external databases or services is required. With Templates and Datasheets you can include some minimal information inside Onirix, to connect it later to your elements within the scenes. This meta-information can be structured with Templates, and filled with Datasheets.
Onirix Templates
Templates define the structure of your meta-data. It is something similar to a database schema. You'll have to define a number of fields with their types.
Supported field types are:
- Textfield: For small texts
- Textarea: For big texts
- Rich text area: For big texts with text editor.
- Image: References a 2D asset
- URL: HTTP URL
- Dropdown: List of string values
- Boolean: True or False
Example of Template: Product
For example, let's create the structure for a Product information:
- Template name: Product
- Template fields:
- Name: Textfield
- Description: TextArea
- Price: Textfield
- Commercial image: Image
- Has discount: Boolean
- Product URL: URL
Datasheets
Datasheets store the actual data according to the structure defined by a template. You can create multiple datasheets of the same Template to give values and this way to fill the needed information:
For example, following the example above, you may have a Product like this:
Finally, you can consume all the information you add to your datasheets from the code editor, accessing these structures through our Embed SDK (via JavaScript).