Skip to content

Commit

Permalink
Add some debugging code.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 29, 2023
1 parent 2b2d07a commit c394804
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Editor/CesiumIonServerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using System;
using UnityEditor;
using UnityEngine;
using UnityEditor.Scripting;
using System.Diagnostics;

namespace CesiumForUnity
{
Expand All @@ -20,8 +22,10 @@ public CesiumIonServer Current
// and move it to the user access token map.
if (string.IsNullOrEmpty(this.GetUserAccessToken(this._currentCesiumIonServer)))
{
UnityEngine.Debug.Log("Checking for backward compatible access token.");
const string editorPrefKey = "CesiumUserAccessToken";
string userAccessToken = EditorPrefs.GetString(editorPrefKey);
UnityEngine.Debug.Log("Old token: " + userAccessToken);
if (!string.IsNullOrEmpty(userAccessToken))
{
this.SetUserAccessToken(this._currentCesiumIonServer, userAccessToken);
Expand Down

0 comments on commit c394804

Please sign in to comment.