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 System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Text; | |
| using UnityEditor; | |
| using UnityEngine; | |
| using Debug = UnityEngine.Debug; | |
| using Object = UnityEngine.Object; |
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
| // Thanks to https://twitter.com/jon_barron/status/1318946131078909952 | |
| // | |
| using UnityEngine; | |
| public static class CurveUtils | |
| { | |
| // From pico8 example by @otikik | |
| public static float BiasGain(float x, float s, float t) | |
| { |
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.Collections.Generic; | |
| using UnityEngine; | |
| namespace Ard.Tools | |
| { | |
| [InitializeOnLoad] | |
| public static class EditorObjectHighlight | |
| { | |
| private static readonly List<HighlightObject> _highlights; |
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 UnityEngine; | |
| public class ReadOnlyAttribute : PropertyAttribute | |
| { | |
| } |
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 UnityEditor; | |
| using UnityEngine.UIElements; | |
| using UnityEngine.UIElements.Experimental; | |
| public class FadeGroupExample : EditorWindow | |
| { | |
| ValueAnimation<StyleValues> m_FoldoutAnimation; | |
| VisualElement m_FadeGroup; | |
| int m_AnimationTime = 500; |
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.Collections; | |
| using UnityEngine; | |
| /// <summary> | |
| /// GC friendly coroutine utilities | |
| /// @JfranMora #UnityTips | |
| /// </summary> | |
| public static class CoroutineUtils | |
| { | |
| public static IEnumerator WaitForSeconds(float seconds) |
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
| Shader "Custom/CurveDissolve" | |
| { | |
| Properties | |
| { | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _MainTex ("Albedo (RGB)", 2D) = "white" {} | |
| _Noise("Noise", 2D) = "white" {} | |
| _CurveTexture("Curve texture", 2D) = "white" {} | |
| _Cutoff("Cutoff", Range(0,1)) = 0 | |
| _Glossiness ("Smoothness", Range(0,1)) = 0.5 |
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
| /* Original code[1] Copyright (c) 2019 Shane Celis[2] | |
| Licensed under the MIT License[3] | |
| [1]: https://gist.github.com/shanecelis/557b30f46b534a80047b9f2969a94c6e | |
| [2]: https://github.com/shanecelis | |
| [3]: https://opensource.org/licenses/MIT | |
| */ | |
| using UnityEngine; | |
| using UnityEditor; |
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 UnityEngine; | |
| public static class Extensions_Math | |
| { | |
| // ... | |
| public static float VectorToRad(this Vector2 thisVec){ | |
| return Mathf.Atan2(thisVec.y, thisVec.x); |
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.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public abstract class SingletonScriptable<T> : ScriptableObject where T : ScriptableObject | |
| { | |
| static T _instance = null; | |
| public static T instance | |
| { | |
| get |
NewerOlder