Files
rudder-unity-sdk/Packages/rudder.sdk/Runtime/Sources/RudderConfiguration.cs
T
edmand46 695a7210b1
CI / check (push) Successful in 6s
CI / publish (push) Failing after 11s
0.3.0: sync Rudder.Core 0.3.0, prod default URLs, drop editor artifacts, CI publish
2026-08-19 17:49:00 +03:00

32 lines
941 B
C#

using UnityEngine;
namespace RudderSdk.Unity
{
[CreateAssetMenu(menuName = "Rudder/Configuration", fileName = "RudderConfiguration")]
public class RudderConfiguration : ScriptableObject
{
[Tooltip("Project key issued in the Rudder admin panel. Required.")]
public string ProjectKey;
[Tooltip("API base URL, e.g. https://api.rudder.build.")]
public string BaseUrl = "https://api.rudder.build";
[Tooltip("Realtime websocket URL. The relay is not deployed yet; set this only once it is.")]
public string RealtimeUrl = "wss://api.rudder.build/api/realtime/ws";
[Tooltip("HTTP request timeout in seconds.")]
[Min(1)]
public int TimeoutSeconds = 10;
private void OnValidate()
{
if (string.IsNullOrEmpty(ProjectKey))
{
Debug.LogWarning(
"[Rudder] ProjectKey is empty on " + name + ". The SDK cannot authenticate without it.",
this);
}
}
}
}