This file contains hidden or 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.Reflection; | |
| using Unity.XR.CoreUtils; | |
| using UnityEngine; | |
| using UnityEngine.XR.OpenXR; | |
| /// <summary> | |
| /// Shim to make FindObjectOfType work | |
| /// </summary> | |
| [DefaultExecutionOrder(-1)] | |
| public class OVRShim : OVRCameraRig |
This file contains hidden or 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.IO; | |
| using System.Net; | |
| using System.Net.WebSockets; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| /// <summary> | |
| /// Extension methods to make working with websockets easier. | |
| /// </summary> |
This file contains hidden or 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
| #if UNITY_WSA | |
| using Microsoft.MixedReality.OpenXR; | |
| using System.Threading.Tasks; | |
| #endif | |
| using System; | |
| using UnityEngine; | |
| using UnityEngine.XR.ARFoundation; | |
| using UnityEngine.XR.ARSubsystems; | |
| using Cysharp.Threading.Tasks; | |
| using System.Threading; |
This file contains hidden or 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 UnityEditor.Build; | |
| using UnityEditor.Build.Reporting; | |
| using UnityEngine; | |
| namespace MyApp | |
| { | |
| /// <summary> | |
| /// Disables the Ultraleap provider at build time | |
| /// </summary> | |
| public class UltraleapPreprocessor : IPreprocessBuildWithReport |
This file contains hidden or 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 Leap.Unity; | |
| using System.Collections; | |
| #if UNITY_EDITOR | |
| using UnityEditor; | |
| #endif | |
| using UnityEngine; | |
| /// <summary> | |
| /// Allows using the Ultraleap in Desktop Mode for editor debugging, rather than on a headset. | |
| /// Local position and rotation control the offset of the device. |
This file contains hidden or 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
| # get yt-dlp (https://github.com/yt-dlp/yt-dlp) | |
| # install ffmpeg (choco install ffmpeg or https://www.ffmpeg.org/download.html | |
| # run command below | |
| # copy to the "Music" folder on your Garmin Watch via USB | |
| # example $URL = "https://music.youtube.com/playlist?list=PL-BHPGwxCFX_onAQe_WIv7JewuMpT38Ft" | |
| $URL = Read-Host "Enter YouTube Music Playlist URL" | |
| .\yt-dlp --output "%(playlist_id)s/%(id)s.%(ext)s" --add-metadata --extract-audio --audio-format mp3 --write-playlist-metafiles --write-info-json "$URL" | |
| $URL -match "(?<=list=)[^&]+" | |
| $PLAYLIST_ID = $Matches[0] |
This file contains hidden or 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 Rhino; | |
| using Rhino.DocObjects; | |
| using Rhino.Geometry; | |
| using System.Collections.Generic; | |
| Dictionary<int, List<RhinoObject>> map = new Dictionary<int, List<RhinoObject>>(); | |
| MeshingParameters meshingParameters = MeshingParameters.Minimal; | |
| meshingParameters.SimplePlanes = true; |
This file contains hidden or 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 Newtonsoft.Json; | |
| using System.Collections.Generic; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| namespace CN | |
| { | |
| public static class YakApi | |
| { | |
| private static HttpClient httpClient = new HttpClient(); |
This file contains hidden or 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
| // Belongs in an Assets/**/Editor folder | |
| public class iOSPostProcessor | |
| { | |
| /// <summary> | |
| /// Post processor to automate skipping the checkbox on testflight for encryption compliance. | |
| /// </summary> | |
| [PostProcessBuild(-999)] | |
| public static void OnPostProcessBuildRunInBackground(BuildTarget buildTarget, string path) | |
| { |
This file contains hidden or 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
| Shader "Points/Billboard" | |
| { | |
| Properties | |
| { | |
| _PointSize("PointSize", Range(0, 0.1)) = 0.01 | |
| [Enum(UnityEngine.Rendering.BlendMode)] _SrcBlend("Source Blend", Float) = 1 // "One" | |
| [Enum(UnityEngine.Rendering.BlendMode)] _DstBlend("Destination Blend", Float) = 0 // "Zero" | |
| [Enum(UnityEngine.Rendering.CompareFunction)] _ZTest("Depth Test", Float) = 4 // "LessEqual" | |
| [Enum(DepthWrite)] _ZWrite("Depth Write", Float) = 1 // "On" | |
| } |
NewerOlder