https://docs.unity3d.com/ScriptReference/RuntimeInitializeOnLoadMethodAttribute.html Unity - Scripting API: RuntimeInitializeOnLoadMethodAttribute RuntimeInitializeOnLoadMethodAttribute class in UnityEngine / Inherits from:Scripting.PreserveAttribute / Implemented in:UnityEngine.CoreModule Description Allow a runtime class method to be initialized when a game is loaded at runtime without action ..