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.Events; | |
using UnityEngine.XR; | |
namespace absurdjoy | |
{ | |
public class UnityXRDevice | |
{ | |
protected XRNode xrNode; |
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.XR; | |
namespace absurdjoy | |
{ | |
/// <summary> | |
/// This grabs tracking data for the indicated XRNode from the UnityXR Input system. | |
/// </summary> | |
public class TrackedPoseDriver_UnityXR : TrackedPoseDriver_Abstract | |
{ |
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; | |
namespace absurdjoy | |
{ | |
/// <summary> | |
/// This class mimics Unity's XR Legacy package, but allows | |
/// similar interaction with any source via extensions. | |
/// </summary> | |
public abstract class TrackedPoseDriver_Abstract : XRNode_Abstract | |
{ |
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.Events; | |
using UnityEngine.XR; | |
namespace absurdjoy | |
{ | |
/// <summary> | |
/// A base class for pulling data from XRNode | |
/// </summary> | |
public abstract class XRNode_Abstract : LifecycleBase |
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.IO; | |
namespace absurdjoy | |
{ | |
public static class FileUtils | |
{ | |
/// <summary> | |
/// Separates the filename from the given path and creates the path. | |
/// </summary> | |
public static void CreateDirectoryFromFilePathIfNeeded(string filePath) |
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; | |
using UnityEngine; | |
namespace absurdjoy | |
{ | |
public static class TimeUtils | |
{ | |
/// <summary> | |
/// Converts the given date into Unix time. Requires .NET4.6 |
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 System.IO; | |
using System.Globalization; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
namespace absurdjoy | |
{ |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
namespace absurdjoy | |
{ | |
/// <summary> | |
/// A simple script that takes motion from one object, amplifies it, and applies it to another object. |
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; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
namespace absurdjoy | |
{ | |
public class ReadOnly : PropertyAttribute {} |
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; | |
namespace absurdjoy | |
{ | |
/// <summary> | |
/// A class that assists in generation of various randomized elements. | |
/// </summary> | |
public static class Rando | |
{ |