Skip to content

Instantly share code, notes, and snippets.

Shader "Hidden/JumpFloodOutline"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
Tags { "PreviewType" = "Plane" }
Cull Off ZWrite Off ZTest Always
@BlindingSun
BlindingSun / UGuiTextToTextMeshPro.cs
Last active November 3, 2022 14:18 — forked from Naphier/UGuiTextToTextMeshPro.cs
Unity3D Editor Tool to convert Unity GUI Text objects to Text Mesh Pro Text Objects
/// Revision info:
/// Updated initial project from Naphier to make it work for Unity 2019.4
///
/// Changes:
/// 1) Include change from levilansing because TMP is now part of Unity.
/// 2) Added using needed for BindingFlags.
using System.Reflection;
using UnityEngine;
using UnityEditor;
@fanhexin
fanhexin / MaterialPropertyBlockModifier.cs
Last active April 17, 2023 08:22
Custom unity component to modify material property through MaterialPropertyBlockModifier
using System;
using GameFoundation.Extension;
using UnityEngine;
namespace GameFoundation.Util
{
[ExecuteInEditMode]
[RequireComponent(typeof(Renderer))]
public class MaterialPropertyBlockModifier : MonoBehaviour
{