TLabWebViewVR icon indicating copy to clipboard operation
TLabWebViewVR copied to clipboard

[Package Manager Window] Error adding package:

Open JGameMaker92 opened this issue 1 year ago • 7 comments

Unable to add the package to Unity using the Package Manager and the git url

JGameMaker92 avatar May 20 '24 10:05 JGameMaker92

Please let me know which package you cannot add. TLabWebview and TLabVKeyborad are managed by submodule and it is automatically added when you run git submodule update --init, so you only need to add Meta XR SDK and XR Interaction Toolkit.

TLabAltoh avatar May 20 '24 11:05 TLabAltoh

It’s the TLabWebViewVR. I couldn’t add it to the package manager in Unity. It says it’s something wrong with the package manifest

JGameMaker92 avatar May 21 '24 07:05 JGameMaker92

Currently I don't manage as package for folder TLabWebViewVR because it's just implementation example, and it's not using additional script. if you migrate prefab in your project, please try to use this script to download prefab from remote to your specific directory.

download meta xr webview prefab
curl -O https://github.com/TLabAltoh/TLabWebViewVR/blob/master/Assets/TLab/TLabWebViewVR/MetaXR/TLabWebView_MetaXR.prefab
curl -O https://github.com/TLabAltoh/TLabWebViewVR/blob/master/Assets/TLab/TLabWebViewVR/MetaXR/TLabWebView_MetaXR.prefab.meta
download xr interaction toolkit webview prefab
curl -O https://github.com/TLabAltoh/TLabWebViewVR/blob/master/Assets/TLab/TLabWebViewVR/XRInteractionToolkit/TLabWebView_XRInteractionToolkit.prefab
curl -O https://github.com/TLabAltoh/TLabWebViewVR/blob/master/Assets/TLab/TLabWebViewVR/XRInteractionToolkit/TLabWebView_XRInteractionToolkit.prefab.meta

TLabAltoh avatar May 21 '24 14:05 TLabAltoh

Why are you doing things the difficult way? Everyone uses the Package Manager, it's so much easier. I'm still trying to figure out how to get these files in my project days later. I have the com.tlab.webview folder in my packages folder of my project but it is still not letting me import it

JGameMaker92 avatar May 22 '24 05:05 JGameMaker92

I have updated the repository to be able to import each module using the package manager. Please import using the url below. Only XR Interaction Toolkit has not been tested, so may be updated later.

module / sample url
TLabVKeyborad https://github.com/TLabAltoh/TLabVKeyborad.git#upm
TLabWebView https://github.com/TLabAltoh/TLabWebView.git#upm
Meta XR Sample https://github.com/TLabAltoh/TLabWebViewVR.git?path=Assets/TLab/TLabWebViewVR/MetaXR#upm
XR Interaction Toolkit Sample https://github.com/TLabAltoh/TLabWebViewVR.git?path=Assets/TLab/TLabWebViewVR/XRInteractionToolkit#upm

It's true that my suggestion is not best practice. I will support the package manager not only for this repository, but for other sample repositories later on.

TLabAltoh avatar May 22 '24 14:05 TLabAltoh

Nice work! I’ve finally got the files in my project. Couldn’t get the scene files to open though Image 5-23-24 at 2 31 AM

JGameMaker92 avatar May 23 '24 20:05 JGameMaker92

I forgot to add support for Unity scenes, so I have updated the repository so that sample scenes can now be edited by importing them as samples. Also, the git url for the unity package manager has changed, so please add "#upm" for the preview git url. I have fixed the previous comment and the table of module git urls.

TLabAltoh avatar May 24 '24 01:05 TLabAltoh