📄️ Overview
The Foundry Database SDK is a Unity package that provides a simple interface for interacting with the Foundry Database Server. It is built into the Foundry Core package, and provides a set of tools and examples to make building multi-user XR experiences easier.
📄️ Security Best Practices
The Database API is built in such a way that it's super easy to set up, but that comes with some risks, since you may open accidentally footgun yourself in a couple ways. Here are some things to keep in mind when using and configuring your Database.
📄️ Configuration And Management
All of the configuration and management of the Foundry Database is done through the Database Management Window, which can be accessed by navigating to Foundry -> Database -> Manager in the Unity Editor.
📄️ Handling User Logins
Most login related functionality is as simple as single function calls, it's up to you to decide how you want to handle the UI and flow of your login system.
📄️ User Properties
User properties are key-value pairs that can be associated with a user. They can be used to store any kind of data that you want to associate with a user, such as preferences, settings, achievements, progress, etc.
📄️ User Roles
At the core of the Database API is a simple role-based permission system. You define both the roles, and what those roles can do (WIP).
📄️ The ApiResult Class
The ApiResult class is a wrapper around responses from the Database server, and it provides a way to check if the request was successful, process error messages and to get the data from the response.