Skip to content

Instantly share code, notes, and snippets.

View BigBallard's full-sized avatar

Dallas Phillips BigBallard

  • Washington
View GitHub Profile
@BigBallard
BigBallard / PlayModeEntryMenu.cs
Last active December 3, 2022 16:03
Unity Editor script to toggle loading entry scene at beginning of play mode.
/// <summary>
/// Menu options to enable or disable the loading of the 0th index entry scene in the build settings when play mode
/// is started. This is useful if you are working on a scene that is later in the intended scene flow of your game when
/// developing.
/// </summary>
[InitializeOnLoad]
public static class PlayModeEntryMenu
{
private const string EntryLoadKey = "editor.entry.load";
private static string _prevScene;
@BigBallard
BigBallard / build-bgfx.ps1
Last active February 19, 2024 07:27
Windows BGFX build powershell script
# PREREQUISITS
# Make sure 'msbuild' is in your path
# Make sure 'git' is installed and in Path
# Make sure 'Visual Studio 2022' is installed with the desktop development package
$projPath = $PSScriptRoot
Write-Host "Pulling source code..."
git clone https://github.com/bkaradzic/bx.git bx
git clone https://github.com/bkaradzic/bimg.git bimg