This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.EventSystems; | |
using UnityEngine.UI; | |
using UnityEngine.XR.ARFoundation; | |
[RequireComponent(typeof(ARRaycastManager))] | |
public class PlacementWithManySelectionWithScaleController : MonoBehaviour | |
{ | |
[SerializeField] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.XR.ARFoundation; | |
using UnityEngine.XR.ARSubsystems; | |
using UnityEngine.XR.Interaction.Toolkit.AR; | |
public class ARPlacementInteractableSingle : ARBaseGestureInteractable | |
{ | |
[SerializeField] | |
[Tooltip("A GameObject to place when a raycast from a user touch hits a plane.")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
from time import sleep | |
INTERVAL = 0.2 | |
if __name__ == "__main__": | |
local_ip = '' | |
local_port = 8890 | |
socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # socket for sending cmd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using Unity.XR.CoreUtils; | |
using UnityEngine.InputSystem; | |
using UnityEngine.XR.ARSubsystems; | |
namespace UnityEngine.XR.ARFoundation.Samples | |
{ | |
[RequireComponent(typeof(ARAnchorManager))] | |
[RequireComponent(typeof(ARRaycastManager))] | |
public class AnchorCreatorV2 : MonoBehaviour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.InputSystem; | |
using UnityEngine.XR.ARFoundation; | |
public class TogglePassthrough : MonoBehaviour | |
{ | |
[SerializeField] | |
private InputActionProperty toggleAction; | |
private ARCameraManager arCameraManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Oculus.Haptics; | |
using UnityEngine; | |
public class HapticsManager : MonoBehaviour | |
{ | |
public static HapticsManager Instance; | |
[SerializeField] private HapticClip clip1; | |
[SerializeField] private HapticClip clip2; | |
[SerializeField] private HapticClip clip3; |
OlderNewer