This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Screenshot Tool | |
// for use in Unity3D | |
// suitable for taking screenshots for iOS/Android app store pages | |
// made by Ryan Miller https://www.ryanmiller.ca | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using System; | |
#if UNITY_EDITOR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Animator transition helper | |
// Gives you shortcuts to set Animator Transitions (in Mecanim/State Machines) | |
// to an immediate trigger transition, or an exit time 1 trigger | |
// useful for people who don't want any blending but still want to use Mecanim! | |
// made by Ryan Miller https://www.ryanmiller.ca | |
#if UNITY_EDITOR | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Event Ferry | |
// used to fake UnityEvent support into Animation Clip events. | |
// place on the gameObject with the Animator component | |
// call TriggerEvent with the index of the event previously specified | |
// Made by Ryan Miller (https://www.ryanmiller.ca) | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Group Utility | |
// groups objects, registers Undo, and sets pivot as an average of children | |
// Made by Ryan Miller (https://www.ryanmiller.ca) | |
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
using System; | |
[ExecuteInEditMode] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if UNITY_EDITOR | |
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
/// <summary> | |
/// Utility for creating ScriptableObject in Unity | |
/// </summary> | |
public static class CustomAssetUtility | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.Events; | |
public class PlatformBrancher : MonoBehaviour | |
{ | |
public PlatformEvent[] onEnable; | |
public PlatformEvent[] onStart; | |
public PlatformEvent[] onDisable; | |
[Tooltip("to be called manually via PlatformBrancher.OnInvoke()")] | |
public PlatformEvent[] onInvoke; |