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.txt
Last active November 4, 2024 18:19
Unity Android Build Errors
### 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
### Failed to update Android SDK package list. See the Console for details.
wrong JAVA_HOME ?
wrong sdk versions, download new ones from unity releases api list.
### Error: LinkageError occurred while loading main class com.android.sdklib.tool.sdkmanager.SdkManagerCli
@nemotoo
nemotoo / .gitattributes
Last active February 21, 2025 06:01
.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
{