UnityGame/Library/PackageCache/com.unity.collab-proxy/Editor/PlasticSCM/CollabMigration/CloudProjectId.cs
2024-10-27 10:53:47 +03:00

22 lines
577 B
C#

using UnityEditor;
namespace Unity.PlasticSCM.Editor.CollabMigration
{
static class CloudProjectId
{
internal static bool HasValue()
{
if (PlasticPlugin.IsUnitTesting)
return false;
return !string.IsNullOrEmpty(GetValue());
}
internal static string GetValue()
{
//disable Warning CS0618 'PlayerSettings.cloudProjectId' is obsolete: 'cloudProjectId is deprecated
#pragma warning disable 0618
return PlayerSettings.cloudProjectId;
}
}
}