Skip to content

Instantly share code, notes, and snippets.

@baba-s
Last active February 4, 2026 00:35
Show Gist options
  • Select an option

  • Save baba-s/220292bb55cfb9374d68c44e70447577 to your computer and use it in GitHub Desktop.

Select an option

Save baba-s/220292bb55cfb9374d68c44e70447577 to your computer and use it in GitHub Desktop.
using System;
using UnityEditor;
namespace Kogane.Internal
{
[InitializeOnLoad]
internal static class SetUseAuthEmulatorEnvironmentVariable
{
static SetUseAuthEmulatorEnvironmentVariable()
{
/*
* 以下のログを無効化するために Unity エディタでのみ環境変数を設定しています。
* USE_AUTH_EMULATOR not set.
* UnityEngine.Debug:Log (object)
* Firebase.Platform.FirebaseLogger:LogMessage (Firebase.Platform.PlatformLogLevel,string) (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/platform/Unity/FirebaseLogger.cs:89)
* Firebase.LogUtil:LogMessage (Firebase.LogLevel,string) (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:69)
* Firebase.LogUtil:LogMessageFromCallback (Firebase.LogLevel,string) (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/app/src/LogUtil.cs:77)
* Firebase.Auth.FirebaseUserInternal:ReloadAsync () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/android_unity/armeabi-v7a/auth/swig/Firebase.Auth_fixed.cs:3017)
* Firebase.Auth.FirebaseUser:ReloadAsync () (at /Users/runner/work/firebase-unity-sdk/firebase-unity-sdk/auth/src/FirebaseUser.cs:199)
*/
Environment.SetEnvironmentVariable( "USE_AUTH_EMULATOR", "0" );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment