Publisher | ByteCobra |
---|---|
File size | 227.73kB |
Number of files | 8 |
Latest version | 1.0.2 |
Latest release date | 2024-04-19 11:40:48 |
First release date | 2024-03-12 06:11:14 |
Supported Unity versions | 2018.4.2 or higher |
The Cobra Database package is a necessary dependency for several of our assets, delivering the required services for these assets to operate smoothly. It also offers an opportunity for users to familiarize themselves with setting up our Docker services before committing to any of our other assets that depend on this package.
Additionally, this package is a valuable resource for anyone interested in exploring Docker and containerization technologies.
Docker Requirement: A system capable of running Docker is needed. Docker is compatible with most Windows and Linux operating systems, even lightweight devices such as Raspberry Pi.
Features
- Support for Custom Data Types: Manage simple custom data types in your Unity projects (editor only).
- REST API and Unity Client: Comes with a REST API for data management and a Unity C# scripts for interacting with the API.
- Security: Enhanced protection is provided for all REST API endpoints via an automatically generated secret.
- Rate Limits: All server endpoints are rate limited to prevent abuse.
- Automatic Backups: The package features automatic backup functionalities.
- Automatic Restarts: In case of any disruptions, such as connectivitiy issues, the services are designed to continuously restart.
The REST API, built with ASP.NET, provides endpoints for managing custom data:
- Set Data: Allows you to add or update data associated with a unique key.
- Get Data: Retrieves data based on a given key.
- Delete Data: Removes data associated with a specific key.
- Get All Keys: Lists all the keys for the custom data stored.
Easy To Use
The package comes with C# scripts that can easily interact with the REST API to manage data from within Unity projects. It offers methods for setting, getting, and deleting data, as well as retrieving all keys.
For example, to create or update data you simply call a method:
DataService.Api.SetDataAsync<SampleData>(data);
To read data you also just call one method with or without a key:
var savedData = DataService.Api.GetDataAsync<SampleData>();
It's also possible to get a list of all the keys:
var allKeys = DataService.Api.GetKeysAsync();
Check out the online documentation for more information.
Other Assets:
Cobra Updater - Update published games directly from Unity.
Cobra Accounts - Create and manage accounts for your users.
Cobra Store - Create an online store for digital products such as DLC.
Cobra Settings - Manage settings in the cloud or locally for your games or apps.
Cobra Database - Easy database acesss.
Cobra Reflection - Accelerated and simplified C# reflection.
Cobra Packets - Multiplayer networking made easy.
Cobra Optimizers - Smart optimization algorithms.
Cobra Observables - Subscribe to variable changes with events.
Cobra Assemblies (free) - Optimize your Unity project's compilation time.