Skip to content

Instantly share code, notes, and snippets.

View mitay-walle's full-sized avatar

Dmitry mitay-walle

View GitHub Profile
@Froghut
Froghut / OdinWatchWindow.cs
Last active June 26, 2024 02:38
Odin Watch Window
#if ODIN_INSPECTOR
using System;
using System.Collections.Generic;
using System.Linq;
using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities;
using Sirenix.Utilities.Editor;
using UnityEditor;
using UnityEngine;
using Object = UnityEngine.Object;
@JohannesMP
JohannesMP / UIBlur.shader
Last active July 17, 2024 19:42
UI.Image Blur Shader with layering and masking support
Shader "Custom/UIBlur"
{
Properties
{
[Toggle(IS_BLUR_ALPHA_MASKED)] _IsAlphaMasked("Image Alpha Masks Blur", Float) = 1
[Toggle(IS_SPRITE_VISIBLE)] _IsSpriteVisible("Show Image", Float) = 1
// Internally enforced by MAX_RADIUS
_Radius("Blur Radius", Range(0, 64)) = 1
using UnityEngine;
/// <summary>
/// Attribute to select a single layer.
/// </summary>
public class LayerAttribute : PropertyAttribute
{
}
@Democide
Democide / SkewedGridLayoutGroup.cs
Last active May 27, 2024 20:06
Skewed Grid Layout Group - Unity UI Extension
/// Skewed Grid Layout Group
/// ===============================
///
/// Written by Martin Nerurkar
/// - http://www.martin.nerurkar.de
/// - http://www.sharkbombs.com
///
/// You are free to moddify and use this code in your own projects
/// You are not allowed to remove this copyright notice
/// You are not allowed to resell this code, even if modified
@StephenHodgson
StephenHodgson / CustomAssetInspector.cs
Last active February 27, 2023 19:54
Unity custom inspector window to render markdown language as text asset.
using System;
using System.IO;
using UnityEditor;
using UnityEngine;
[CustomEditor(typeof(DefaultAsset))]
public class CustomAssetInspector : Editor
{
public override void OnInspectorGUI()
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
/// <summary>
/// A simple free camera to be added to a Unity game object.
///
/// Keys:
@renaudbedard
renaudbedard / ADSR.cs
Last active August 3, 2023 09:14
ADSR Envelope for Unity
using System;
using System.Collections.Generic;
using UnityEngine;
/* ****************
* Sample Usage *
****************
// prerequisite : put a gameobject with the ADSR script on it in your scene
// this enables the update loop that transparently updates Envelope objects