Skip to content

Instantly share code, notes, and snippets.

View edwardrowe's full-sized avatar

Edward Rowe edwardrowe

View GitHub Profile
@edwardrowe
edwardrowe / Curve.cs
Created February 27, 2018 19:35
Curve ScriptableObject for Unity
using UnityEngine;
/// <summary>
/// Stores a Unity AnimationCurve as an asset
/// </summary>
public class Curve : ScriptableObject
{
[SerializeField]
private AnimationCurve curve;
@edwardrowe
edwardrowe / MacKeybindings.ahk
Created September 21, 2016 15:14
AutoHotkey MacToWindows Bindings
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#NoTrayIcon
#InputLevel 1
!a::Send ^a
!f::Send ^f
@edwardrowe
edwardrowe / EmbeddedInspectorAttribute.cs
Created August 30, 2016 21:11
EmbeddedInspectorAttribute
/*The MIT License (MIT)
Copyright (c) 2016 Edward Rowe (@edwardlrowe)
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
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@edwardrowe
edwardrowe / SelectionHistoryWindow.cs
Last active July 21, 2016 13:55
A Simple SelectionHistory manager for Unity
/*The MIT License (MIT)
Copyright (c) 2016 Red Blue Games, LLC. Author Edward Rowe (@edwardlrowe)
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
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
@edwardrowe
edwardrowe / Comment.cs
Last active July 17, 2023 00:11
Unity - Draw Icon on GameObject in Hierarchy
/*The MIT License (MIT)
Copyright (c) 2016 Edward Rowe (@edwardlrowe)
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
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
@edwardrowe
edwardrowe / BuildScript.cs
Last active April 8, 2018 21:48
Unity BuildScript for Mobile
/*The MIT License (MIT)
Copyright (c) 2016 Edward Rowe (@edwardlrowe)
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
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@edwardrowe
edwardrowe / RenameSpritesheet.cs
Last active March 22, 2023 01:22
Unity - RenameSpritesheet
/*The MIT License (MIT)
Copyright (c) 2016 Edward Rowe (@edwardlrowe)
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
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@edwardrowe
edwardrowe / AnimClipBuilder.cs
Last active February 3, 2023 06:42
Unity - Build Clip From Selected Texture
/*The MIT License (MIT)
Copyright (c) 2016 Edward Rowe (@edwardlrowe)
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
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@edwardrowe
edwardrowe / TriggerAction.cs
Last active August 17, 2016 14:37
Unity Trigger Action - used to wire up actions to trigger events
// Script by Edward Rowe (@edwardlrowe)
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
[RequireComponent (typeof(Collider2D))]
public class TriggerAction : MonoBehaviour
{
[Tooltip ("Tag strings of valid objects to activate Trigger.")]