Skip to content

Instantly share code, notes, and snippets.

View Chrisdbhr's full-sized avatar

Chris Ravailhe Chrisdbhr

View GitHub Profile
@Chrisdbhr
Chrisdbhr / VertexLit - Single color.shader
Created January 21, 2025 18:32
Vertex Lit (Single Color) Unity Shader - Built-in Render Pipeline
// From https://discussions.unity.com/t/mobile-diffuse-with-color/585257/7
// With fallback
Shader "Custom/VertexLit - Single color" {
Properties {
_Color ("Color", color) = (1,1,1,1)
}
SubShader {
Tags { "RenderType"="Opaque" }
LOD 80
@Chrisdbhr
Chrisdbhr / find_and_delete_unity_libraries.ps1
Last active October 5, 2025 14:25
Find And Delete Unity Libraries and Temp folders - PowerShell script
# A simple PowerShell script to clean up temporary Unity project files and free up disk space.
# As a developer working on multiple projects, I often find that Unity's Library, Temp, and obj folders consume a lot of storage. I use this script to quickly find all Unity projects within a specific directory and delete those cache folders safely.
# Check more of my games and projects at chrisjogos.com
# Clear the console for a clean start.
Clear-Host
# --- Recursive Search Function (Optimized) ---
# This function searches for Unity projects and other specified folders.
function Find-FoldersToDelete {