Skip to content

Instantly share code, notes, and snippets.

@majstudio
majstudio / Example.cs
Created January 26, 2018 04:50
Fancy Vector3 Range in Unity Inspector
using UnitEngine;
public class Example : MonoBehaviour
{
//As easy as this !
//You can adjust the slider limits in the inspector as well
public Vector3Range v3Range;
//...
@unitycoder
unitycoder / Internal-GUITextureClipText.shader
Last active January 20, 2019 12:45
UpdateShaders in Editor
// Unity built-in shader source. Copyright (c) 2016 Unity Technologies. MIT license (see license.txt)
Shader "Hidden/Internal-GUITextureClipText"
{
Properties { _MainTex ("Texture", 2D) = "white" {} }
CGINCLUDE
#pragma vertex vert
#pragma fragment frag