14 lines
357 B
C#
14 lines
357 B
C#
using JetBrains.Annotations;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.XR.ARFoundation;
|
|
using UnityEngine.XR.ARSubsystems;
|
|
|
|
public class Furniture : MonoBehaviour
|
|
{
|
|
public void PlaceFurniture([CanBeNull] ARTrackable aRTrackable)
|
|
{
|
|
transform.SetParent(aRTrackable != null ? aRTrackable.transform : null);
|
|
}
|
|
}
|