CandyCoded
CandyCoded copied to clipboard
🍭 Custom Unity Components that are delightful
Git tag 4.2.0 package.json version: 4.1.0 To fix: - Opt 1: bump package.json version to 4.2.0 and re-create tag 4.2.0, (delete the tag and tag it again). - Opt 2:...
```csharp using System.Threading.Tasks; public static class ThreadUtilities { public static void RunOnMainThread(this Task task) { Task.Delay(0).ContinueWith(async _ => await task, TaskScheduler.FromCurrentSynchronizationContext()); } } ```
```csharp using System; using System.Diagnostics; using System.Threading; public abstract class CancellableProgressReport { internal readonly CancellationTokenSource _cancellationTokenSource; internal readonly CancellationToken _cancellationToken; internal readonly IProgress _progress; internal readonly Stopwatch _stopwatch; public int...
```json "samples": [ { "displayName": "Example XR Management implementation", "description": "Example code showing how to implement various portions of the XR Management API.", "path": "Samples~" } ] ```