Skip to content

Instantly share code, notes, and snippets.

View fletcherkildren's full-sized avatar
💭
finishing my demo

fletcherkildren

💭
finishing my demo
View GitHub Profile
@GEMISIS
GEMISIS / ScreenFade.cs
Last active October 7, 2020 23:15
Updated Screen Fading with URP support. Yanked raw from a project, so may need further modifications later. As a result, no guarantees on this working properly.
using UnityEngine;
using UnityEngine.Rendering;
using System.Collections;
/// <summary>
/// An enumerator used to describe the type of fade
/// that was done for a fade event.
/// </summary>
public enum FadeType
{
@GEMISIS
GEMISIS / ScreenFade.cs
Last active September 24, 2019 20:10
Custom fade script for use with the Oculus SDK. Handles fading in and out, as well as custom callbacks for when fading completes.
/************************************************************************************
Copyright : Copyright 2014 Oculus VR, LLC. All Rights reserved.
Licensed under the Oculus VR Rift SDK License Version 3.3 (the "License");
you may not use the Oculus VR Rift SDK except in compliance with the License,
which is provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
You may obtain a copy of the License at
@waldobronchart
waldobronchart / UnityPlatformSwitcher.cs
Last active February 5, 2025 00:51
A simple fast platform switcher for Unity
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
public class PlatformSwitcher
{
[MenuItem("Platform/PC, Mac and Linux Standalone")]
static void SwitchPlatformToDesktop()
{