This package provides tools for creating and exporting files in Unity used by Treasured Web Viewer. The package is currently under development. Issues and feature requests can be submit at here.
- 2020.3+, older version may work but not guaranteed
This package relies on UnityMeshSimplifier. You must set up your scoped registry for your project BEFORE
installing the package.
Open your Unity Editor and go to Edit > Project Settings... > Package Manager > Scoped Registries
. Create a new scope registry and enter the following:
Name
package.openupm.com
URL
https://package.openupm.com
Scope(s)
com.whinarn.unitymeshsimplifier
If you already using OpenUPM simply add com.whinarn.unitymeshsimplifier
to the scope(s) and click Save
.
Next, go to Edit > Project Settings... > Player > Api Compatibility Level
and set it to .NET 4.x
or .NET Framework
.
Currently the package can only be installed using git. Eventually the package will be move to scoped registry (e.g., OpenUPM) or asset store.
There are two versions of the package:
- Stable - This is the most stable version.
https://github.com/TB-Terence/treasured-sdk-for-unity.git#upm
- Experimental - This is an experimental version with all the new features and changes. This version doesn't guarantee to generate valid files.
https://github.com/TB-Terence/treasured-sdk-for-unity.git#exp
The SDK can be installed using treasured-sdk-installer. The installer will setup the project and download all the dependencies the package is using.
The guide on how to add a package from a git URL to your project can be found here. Use the GIT URL above for different version.
You must clone the project first and then follow the guide on how to add a package from local folder. Use the GIT URL above for different version.
If you are getting the following errors, see Before you start section.
Packages\com.treasured.unitysdk has invalid dependencies or related test packages
error CS7069: Reference to type 'Image' claims it is defined in 'System.Drawing', but it could not be found
If you are getting the this error, update your Version Control
package to 1.15.12
or above.
unityplastic references strong named Newtonsoft.Json Assembly references: 12.0.0.0 Found in project: 13.0.0.0.