Skip to content

Instantly share code, notes, and snippets.

View Thundernerd's full-sized avatar
🎉

Christiaan Bloemendaal Thundernerd

🎉
View GitHub Profile
@Thundernerd
Thundernerd / .gitattributes
Created September 28, 2020 07:17 — forked from nemotoo/.gitattributes
.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
@Thundernerd
Thundernerd / AutohookAttribute.cs
Created June 12, 2020 11:23 — forked from LotteMakesStuff/AutohookAttribute.cs
[Autohook] property drawer for unity - Add this [Autohook] attribute to a property to and the inspector will automagically hook up a valid reference for you if it can find a component attached to the same game object that matches the field you put it on. You can watch a demo of this in action here https://youtu.be/faVt09NGzws <3
// NOTE DONT put in an editor folder!
using UnityEngine;
public class AutohookAttribute : PropertyAttribute
{
}