Skip to content

Instantly share code, notes, and snippets.

@Cyanilux
Cyanilux / SceneColorSetup.cs
Created July 4, 2023 17:00
Setup _CameraOpaqueTexture (for Scene Color node) in Unity's Built-in Render Pipeline (BiRP)
/*
Copies the camera buffer after rendering opaques, to _CameraOpaqueTexture property so the Scene Color node can work in the Built-in RP.
Attach this script to the Main Camera (and any other cameras you want an Opaque Texture for)
Will also work for Scene Views (Though if a new window is opened will need to enter & exit play mode)
Tested in 2022.2
@Cyanilux
*/
using UnityEngine;
using UnityEngine.Rendering;
@SoftwareGuy
SoftwareGuy / EditorFontSize.cs
Created November 3, 2022 01:39 — forked from nukadelic/EditorFontSize.cs
Unity Editor Font Size Changer -- EditorStyles
#if UNITY_EDITOR
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
public class EditorFontSize : EditorWindow
{
[MenuItem("Window/Editor Font Size")]