Skip to content

Instantly share code, notes, and snippets.

@Ivalaostia
Ivalaostia / SceneViewUIObjectPickerContextWindow.cs
Created September 8, 2025 10:42 — forked from yasirkula/SceneViewObjectPickerContextWindow.cs
Select the UI object under the cursor via right click in Unity's Scene window
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
#if UNITY_2021_2_OR_NEWER
using PrefabStage = UnityEditor.SceneManagement.PrefabStage;
using PrefabStageUtility = UnityEditor.SceneManagement.PrefabStageUtility;
@Ivalaostia
Ivalaostia / FillLinear.shader
Created November 16, 2021 07:55 — forked from nevarman/FillLinear.shader
Linear fill shader for Unity3D
Shader "Custom/Fill-Linear" {
Properties {
_MainTex ("Base (RGB)", 2D) = "white" {}
_Color ("Color", Color) = (1,1,1,1)
_Center ("Center", Vector) = (0,0,0,0)
_FillRate ("FillRate", Range(0, 1.0)) = 1.0
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 100