To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.
Folow this guide to setup ssh server.
// Improved navigation code | |
using System; | |
using System.Collections.Generic; | |
using UnityEngine.Serialization; | |
using UnityEngine.EventSystems; | |
namespace UnityEngine.UI | |
{ | |
[AddComponentMenu("UI/Selectable", 35)] | |
[ExecuteAlways] |
To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.
Folow this guide to setup ssh server.
using UnityEditor; | |
using UnityEngine; | |
using System.Linq; | |
using UnityEditor.Callbacks; | |
namespace Ashkatchap { | |
public static class DefineSymbolUtil { | |
static readonly (string, string)[] TypeAndSymbol = new[] { | |
("UltEvents.UltEventBase, UltEvents, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "USE_ULTEVENTS"), | |
}; |
Type animatorWindowType = Type.GetType("UnityEditor.Graphs.AnimatorControllerTool, UnityEditor.Graphs"); | |
var window = EditorWindow.GetWindow(animatorWindowType); | |
window.Show(); |
// https://mouaif.wordpress.com/2009/01/05/photoshop-math-with-glsl-shaders/ | |
/* | |
** Photoshop & misc math | |
** Blending modes, RGB/HSL/Contrast/Desaturate | |
** | |
** Romain Dura | Romz | |
** Blog: http://blog.mouaif.org | |
** Post: http://blog.mouaif.org/?p=94 | |
*/ |
// Smooth equivalent to step(a, b) and both a and b can have their value change. | |
float aaStepFastBoth(float a, float b) { | |
return saturate((b - a) / max(fwidth(b), fwidth(a))); | |
} |
using System; | |
using System.Runtime.InteropServices; | |
namespace Ashkatchap.BitUtils { | |
public enum Endianness { | |
/// <summary> | |
/// Network Byte order | |
/// </summary> | |
Big = 0, | |
/// <summary> |
#pragma kernel Downscale | |
#pragma kernel GaussianBlurVertical | |
#pragma kernel GaussianBlurHorizontal | |
#pragma kernel BoxBlur | |
Texture2D<float4> _Source; | |
RWTexture2D<float4> _Dest; | |
float _Amount; | |
float2 _Size; |