Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

loading player preferences unity

//try this!
using UnityEngine;
using UnityEditor;

[InitializeOnLoad]
public class Startup {
    static Startup()
    {
        Debug.Log("Up and running");
    }
}

//https://docs.unity3d.com/Manual/RunningEditorCodeOnLaunch.html
 
PREVIOUS NEXT
Tagged: #loading #player #preferences #unity
ADD COMMENT
Topic
Name
3+3 =