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; | |
public static class TryGetComponentExtensions | |
{ | |
#region GameObject Extensions | |
#if !UNITY_2019_1_OR_NEWER | |
public static bool TryGetComponent<T>(this GameObject gameObject, out T component) where T : Component | |
{ | |
component = gameObject.GetComponent<T>(); |
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; | |
public class InputDeviceManager : MonoBehaviour | |
{ | |
private HashSet<string> _loadedControllerInputDevices; | |
public InputDevice LeftController; | |
public InputDevice RightController; |
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; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace UnityOpenXR | |
{ | |
public class Arc : MonoBehaviour | |
{ | |
public int SegmentCount = 60; | |
public float Thickness = 0.01f; |
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; | |
using UnityEngine; | |
namespace SunnyverseGames | |
{ | |
[Serializable] | |
public sealed class ReactiveProperty<T> | |
{ | |
[SerializeField] private T _value; |