Replace UltimateXR with HurricaneVR
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace HurricaneVR.Framework.Components
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper component to parent this transform to the assigned transform on game start
|
||||
/// </summary>
|
||||
public class HVRParentOnStart : MonoBehaviour
|
||||
{
|
||||
public Transform Parent;
|
||||
public bool WorldPositionStays = true;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
if (Parent)
|
||||
{
|
||||
transform.SetParent(Parent, WorldPositionStays);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user