This file contains hidden or 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 System; | |
using UnityEditor; | |
using UnityEngine; | |
namespace Tools | |
{ | |
/// <summary> | |
/// Add this attribute to a float property to make it a logarithmic range slider | |
/// </summary> | |
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] |
This file contains hidden or 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
/** | |
* Helper class for animating on/off values | |
* | |
* (c) 2019 - Bart van de Sande | |
* | |
*/ | |
export default class SmoothBoolean | |
{ | |
/** |
This file contains hidden or 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
/** | |
* | |
* Provides an easy way to start animating on an event and keep doing new frame requests for X number of ms after the last poke has occured | |
* | |
* (c) 2019 - Bart van de Sande | |
*/ | |
export default class AnimationFrameTail | |
{ | |
constructor(tailDuration, callback) |
This file contains hidden or 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
/** | |
* | |
* Boilerplate for making a Unity GameObject a singleton | |
* 2019 - Bart van de Sande / Nonline | |
* | |
*/ | |
using UnityEngine; | |
public class MonoBehaviourSingleton<T> : MonoBehaviour where T : MonoBehaviourSingleton<T> |