Skip to content

Instantly share code, notes, and snippets.


NeatWolf NeatWolf

  • Freelance Unity Gamedev
  • Liverpool
View GitHub Profile
NeatWolf / SingletonScriptableObject.cs
Created Sep 12, 2020
Abstract class for making reload-proof singletons out of Uniy3D ScriptableObjects
View SingletonScriptableObject.cs
using System.Linq;
using UnityEngine;
/// <summary>
/// Abstract class for making reload-proof singletons out of ScriptableObjects
/// Returns the asset created on editor, null if there is none
/// Based on
/// </summary>
/// <typeparam name="T">Type of the singleton</typeparam>
NeatWolf / EasingFunctions.cs
Created Jun 24, 2020 — forked from cjddmut/EasingFunctions.cs
Easing Functions for Unity3D
View EasingFunctions.cs
* Created by C.J. Kimberlin
* The MIT License (MIT)
* Copyright (c) 2019
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
NeatWolf / FindByGuid.cs
Created Apr 27, 2020 — forked from partlyhuman/FindByGuid.cs
Unity Find by GUID
View FindByGuid.cs
using UnityEditor;
using UnityEngine;
namespace com.hololabs.editor
public class FindByGuid : EditorWindow
[MenuItem("Utility/Find Asset by Guid %&g")]
public static void DoFindByGuidMenu()
NeatWolf / Unity Assembly Definition Debugger.cs
Created Apr 27, 2020 — forked from noisecrime/Unity Assembly Definition Debugger.cs
Find out what assemblies are being built and how long each takes.
View Unity Assembly Definition Debugger.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using UnityEditor;
using UnityEditor.Compilation;
using UnityEngine;
namespace NoiseCrimeStudios.Editor.Settings
NeatWolf / AssignSceneName
Created Apr 27, 2020 — forked from noisecrime/AssignSceneName
Unity - Adding commands to component context/cog menu.
View AssignSceneName
// NoiseCrime Gist
// 2014.06.21
// Unity Version: 3.5.7+
// This script demonstrates how you can use MenuItem to append commands to a script component context menu.
// The new commands will be available by right-clicking on a component header or clicking the little cog icon.
// Docs:
// Note: You must use the current class name/type in both the MenuItem and where the context is used in the code.
NeatWolf / IsDirtyUtility.cs
Created Apr 21, 2020 — forked from joshcamas/IsDirtyUtility.cs
Simple Utility script for Unity3D that allows access for "IsDirty" method for gameobjects.
View IsDirtyUtility.cs
using UnityEngine;
using UnityEditor;
using System.Reflection;
using System;
//Special thanks to Shamanim for solution
public class IsDirtyUtility
//Cached Value
NeatWolf / CameraShake.cs
Created Jan 31, 2020 — forked from ftvs/CameraShake.cs
Simple camera shake effect for Unity3d, written in C#. Attach to your camera GameObject. To shake the camera, set shakeDuration to the number of seconds it should shake for. It will start shaking if it is enabled.
View CameraShake.cs
using UnityEngine;
using System.Collections;
public class CameraShake : MonoBehaviour
// Transform of the camera to shake. Grabs the gameObject's transform
// if null.
public Transform camTransform;
// How long the object should shake for.
NeatWolf / .gitattributes
Created Nov 8, 2019 — forked from FullStackForger/.gitattributes
.gitattributes for Unity3D with git-lfs
View .gitattributes
# Unity
*.cginc text
*.cs diff=csharp text
*.shader text
# Unity YAML
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
NeatWolf / .gitattributes-lfs-unity
Created Nov 8, 2019 — forked from bpesquet/.gitattributes-lfs-unity
.gitattributes file for LFS with Unity
View .gitattributes-lfs-unity
* text=auto
# Unity files
*.meta -text -merge=unityamlmerge
*.unity -text -merge=unityamlmerge
*.asset -text -merge=unityamlmerge
*.prefab -text -merge=unityamlmerge
# Image formats
*.psd filter=lfs diff=lfs merge=lfs -text