Skip to content

Instantly share code, notes, and snippets.

View Rabadash8820's full-sized avatar

Dan Vicarel Rabadash8820

View GitHub Profile
@AntonZhernosek
AntonZhernosek / UnityWebRequestExtension.cs
Last active August 13, 2023 04:45
UnityWebRequest doesn't support async/await operations natively. With this small extension, it now has an awaiter and can be cancelled via a CancellationToken
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine.Networking;
namespace UnityUtilities.Networking.Extensions
{
public static class UnityWebRequestExtension
{
public static async Task<UnityWebRequest.Result> SendWebRequestAsync(this UnityWebRequest request, CancellationToken ct = default)
@unitycoder
unitycoder / android-errors.md
Last active June 18, 2025 18:12
Unity Android Build Errors

UnityException: Required API level 26. Make sure Android SDK path is writable by the Editor.

??? (happened after upgraded sdk for Unity 6000.2 and now try to build in unity 2022.x)

android sdk outdated (unity 6000.2 android build error) SDK Cmdline-Tools version 6.0 < 16.0.

  • press upgrade, it opens powershell updater, usually works

Exception: Unable to install additional SDK platform. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed.

Run sdkmanager.bat --update manually once! since it asks for accepting terms

@nemotoo
nemotoo / .gitattributes
Last active July 10, 2025 12:30
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@gogsbread
gogsbread / Reflections.cs
Created January 2, 2013 23:11
Comparing reflection using Mono.Cecil and .NET Reflection.
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Mono.Cecil;
using System.IO;
class Reflect
{