07-01-2016 08:59 PM
07-01-2016 10:03 PM
07-01-2016 10:06 PM
07-01-2016 10:10 PM
02-02-2018 11:54 AM
09-01-2018 10:15 AM
02-16-2019 06:35 AM
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class CanvasVRModifier : MonoBehaviour
{
public GameObject pointer;
private void Awake()
{
GraphicRaycaster gr = GetComponent<GraphicRaycaster>();
OVRRaycaster OVRrc = null;
if (gr != null)
{
gr.enabled = false;
OVRrc = gameObject.AddComponent<OVRRaycaster>();
OVRrc.pointer = pointer;
OVRrc.blockingObjects = OVRRaycaster.BlockingObjects.All;
}
}
}