Initial Commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user