Skip to content

Instantly share code, notes, and snippets.

View Rabadash8820's full-sized avatar

Dan Vicarel Rabadash8820

View GitHub Profile
@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
{
@nemotoo
nemotoo / .gitattributes
Last active June 20, 2024 09:44
.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
@unitycoder
unitycoder / android-errors.txt
Last active April 29, 2024 19:32
Unity Android Build Errors
### "error while evaluating property namespace of task unitylibrary:googleplaygamesmanifest.androidlib:packageReleaseResources'
Delete "Assets\Plugins\Android\GooglePlayGamesManifest.androidlib" folder before build (every time)
### get your app id from google play console (for leaderboards plugin)
- On the left menu, Play Games Services/Setup and management/Configuration (but its only available, if you have done play services setup for this app)
### GRADLE ERROR : colliding-attributes
- https://gley.gitbook.io/easy-achievements/setup-guide#build
### stuck at "building scene 0"
@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)