Unisave Asset is a Unity Engine asset that integrates your game with the Unisave cloud. The asset is available on the Unity asset store.
If you just want to use Unisave, please refer to the online documentation on the Unisave website. Everything in this repository is intended for Unisave developers, not its users.
- Development setup
- Folder structure
- Code architecture
- Unisave fixture test suite
- Testing WebGL on Windows
You need to install the precise version of Unity that the project currently uses, see the version in ProjectSettings/ProjectVersion.txt.
After cloning do:
- Open the project in Unity (check the Unity version).
- Ignore compile errors.
- Install required Unity packages in
Window > Package ManagerinPackages: Unity Registry:TextMeshPro(so that examples compile)Test Framework(so that tests compile and run)JetBrains Rider Editor(so that csproj and sln files are generated and Rider works well)- If some package installation fails, just restart Unity and retry.
- Restart Unity once all are installed, if errors don't disappear right away.
- Set up Unisave cloud connection (ideally to the minikube cluster) so that examples and unit test can be run.
- Minikube connection does not use HTTPS, thus you get an
Insecure connection not allowed. Go toProject Settings > Player > Other Settings > Configuration > Allow downloads over HTTPand selectAlways allowed.
- Minikube connection does not use HTTPS, thus you get an
Optional:
- Import Text Mesh Pro
Window > TextMeshPro > Import TMP Essential Resourcesso that examples work. - Enable
Heapstorebackend definition file to run its tests as well (this option is remembered in PlayerPrefs only).
Once this is done, you can try running all the tests. Open Window > General > Test Runner and select the Play Mode tab. You should see all the tests. To try out the connection, run the UnisaveFixture.ExampleFullstackTest.ItCallsFacetMethod by double-clicking on it. Then double-click the root node to run all the tests.
Note: To kill running tests, click on the
[>]play button.
See the Development setup documentation page.