Phillipes_Fablab/Assets/Oculus/SampleFramework/Usage/Passthrough/Scripts/PassthroughSurface.cs
2023-01-09 11:46:20 +01:00

16 lines
395 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PassthroughSurface : MonoBehaviour
{
public OVRPassthroughLayer passthroughLayer;
public MeshFilter projectionObject;
void Start()
{
Destroy(projectionObject.GetComponent<MeshRenderer>());
passthroughLayer.AddSurfaceGeometry(projectionObject.gameObject, true);
}
}