Meta’s Building Blocks | Develop Mixed Reality Apps lightning fast
Meta Documentation:
Add Interaction(Grabbable) onto normal 3D object:
event handler for grabbable events:
Add event handler’s after grabbing:
using static Oculus.Interaction.Grabbable;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PearlSphereGrabHandler : MonoBehaviour
{
private Oculus.Interaction.Grabbable _grabbable;
private void Start()
{
_grabbable = GetComponentInChildren<Oculus.Interaction.Grabbable>();
}
private void Update()
{
// Detect whether sphere is grabbed or not.
if (_grabbable.SelectingPointsCount > 0 && replacingMaterial != null)
{
// Do something...
}
}
}
rendering pipeline
3D universal rendering pipeline (universal 3)