6d115f158e
- Rudder.Core.dll rebuilt from csharp-sdk effects rewrite (96,768 bytes) - Realtime/ adapters, UnityRealtimeTransportFactory, UnityPlanStateStore, UnityPlanScheduler, WebGL jslib and RealtimeUrl config deleted (with .meta) - Scenarios sample rewired to client.Effects; samples login path updated - AGENTS.md/README/CHANGELOG/package docs + agent skill updated; realtime.md skill doc removed
29 lines
768 B
C#
29 lines
768 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("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);
|
|
}
|
|
}
|
|
}
|
|
}
|