0 votes

1 Answer

0 votes
by (27.7k points)

Dear developer,
Could you please tell us what version of unity engine, SDK and PUI you are using?

by (400 points)

I'm using Unity 2019.2.13f1 and SDK (PicoVRUnitySDK64bit-2.8.12B583-20211027) and PUI v4.0.7

by (27.7k points)

Dear developer,
Do you have a Pvr_UnitySDK prefab in your new scene?

Note: If you have multiple scenarios in your project, it is recommended to place only the PvrUnitySDK prefab in the main scenario, and then add the "DontDestroyOnLoad" method under this prefab. Ensure that there is only one PvrUnitySDK prefab when switching scenes.
Try adding the following script to the Pvr_UnitySDK prefab;

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DontDestroyOnLoadTest : MonoBehaviour
{
    private void Awake()
    {
        DontDestroyOnLoad(this.gameObject);
    }
}

enter image description here

by (400 points)

Thanks it was very helpful. I have another problem with raycast. when I try to find RaycastResult, it has shown none. Kindly help me out I have attached my script.
enter image description here

by (27.7k points)

Dear developer,
you can refer this script:
enter image description here

by (400 points)

Thanks for your response. Is there any way to use mouse pointer in unity editor to test drag,scroll kinda gesture. Its bit hard to test every time, i had to check the app after installing in Pico device.

by (27.7k points)

Dear developer,
Our DirectPreview will support this feature. And it will be released in the near future.
DirectPreview: the development of debugging tool, can be in the headset and PC side to see the real-time synchronization of the debugging screen function.
See our Roadmap for release dates:
https://bytedance.feishu.cn/docx/doxcnWWl9pXkctpCXfNpOT9sgTc

by (400 points)

Thanks for your help. OnPointerEnter is continously invoking. help me out

public void OnPointerEnter(PointerEventData eventData)
{
Debug.LogError("________OnPointerEnter________");
}

by (27.7k points)

Dear developers,
May I ask for what purpose do you use OnPointerEnter?
If it's for UI interaction, We have a DEMO of UI interaction in our SDK for your reference:
enter image description here

...