Through this guide, you will be introduced how to update the SDK if you already have installed the SDK previously. Please, restart the Editor before continuing.
Remove the previous HISPlayer SDK package from Unity Package Manager.
Window > Package Manager > Packages - HISPlayer > HISPlayer SDK > Remove
Importing the new package is the same as importing other normal packages in Unity. Select the package of HISPlayer SDK and import it.
Assets > Import Package > Custom Package > HISPlayerSDK.unitypackage
Open the window Window > Package Manager located in the upper side of the screen > Click on '+' > Add package by name and write com.unity.xr.visionos in the box and wait until the package is installed.
Open Edit > Project Settings > XR Plug-in Management select the visionOS platform and enable the option Apple visionOS
In the same window open XR Plug-in Management > Project Validation and click on Fix All button. If there is still some error on the panel follow the instructions until you have no errors.
In the Project window, open Packages > HISPlayer SDK > HISPlayer > Plugins > iOS select HISPlayeriOS.framework and exclude visionOS platform.
In the case of using the Apple Vision Pro device, please, follow these steps:
- Open Project window open Packages > HISPlayer SDK > HISPlayer > Plugins > visionOS, select HISPlayerVisionOS.framework, exclude iOS and enable the option Add to Embedded Binaries.
- Open Packages > HISPlayer SDK > HISPlayer > Plugins > visionOS > simulator, select select HISPlayerVisionOS.framework and exclude visionOS platform.
In the Project window, open Packages > HISPlayer SDK > HISPlayer > Plugins > iOS select HISPlayeriOS.framework and exclude visionOS platform.
In the case of using the Apple Vision Pro simulator for Xcode, please, follow these steps:
- Open Project window open Packages > HISPlayer SDK > HISPlayer > Plugins > visionOS > simulator, select HISPlayerVisionOS.framework, exclude iOS and enable the option Add to Embedded Binaries.
- Open Packages > HISPlayer SDK > HISPlayer > Plugins > visionOS, select select HISPlayerVisionOS.framework and exclude visionOS platform.
If you received a license key from HISPlayer, please input the license key in the License Key field.
If the license key is not valid, the player won’t work and will throw an error message. License key is not required for Unity Editor usage.