public void OnPreprocessBuild(BuildReport report) { var apiKey = ScapeClient.RetrieveKeyFromResources(); if (apiKey == "") { EditorUtility.DisplayDialog("Warning!", "A ScapeAPI key has not been set.", "Ok"); } }
void Awake() { apiKey = ScapeClient.RetrieveKeyFromResources(); }