Skip to content

Instantly share code, notes, and snippets.

@baba-s
Created March 21, 2024 23:36
Show Gist options
  • Save baba-s/7c03548ada849eb312718b79806662ce to your computer and use it in GitHub Desktop.
Save baba-s/7c03548ada849eb312718b79806662ce to your computer and use it in GitHub Desktop.
using UnityEditor;
using UnityEngine;
[InitializeOnLoad]
public static class Example
{
static Example()
{
BuildPlayerWindow.RegisterBuildPlayerHandler( OnBuildPlayer );
}
private static void OnBuildPlayer( BuildPlayerOptions buildPlayerOptions )
{
Debug.Log( "ピカチュウ" );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment