Skip to content
Feralin

Developers

Unity C#: quickstart

Install and first-use steps for sending events to Feralin with Unity C#. Code samples come from the SDK's own README and statuses from the capability record.

Install

com.feralin.unity 0.3.0 is published on UPM; install it with your package manager using the command below.

https://github.com/feralincom/sdk.git?path=sdks/unity#sdks/unity/v0.3.0
{ "dependencies": { "com.feralin.unity": "https://github.com/feralincom/sdk.git?path=sdks/unity#sdks/unity/v0.3.0" } }
{ "dependencies": { "com.feralin.unity": "file:/mutlak/yol/com.feralin.unity-0.3.0.tgz" } }

First use

using Feralin.Unity;
using UnityEngine;

public class Game : MonoBehaviour
{
    void Start()
    {
        var feralin = FeralinBehaviour.Initialize("pk_live_ORNEK", "https://collect.ornek.com");
        // Karar oyunun izin ekranından gelir; SDK izni kendisi varsaymaz ve saklamaz.
        feralin.SetConsent(new Consent(analytics: true, advertising: true));

        feralin.Client.TrackLevelStart("dunya_1");
        feralin.Client.TrackLevelComplete("dunya_1", attempt: 1, score: 1200, durationMs: 33500);
    }
}

Code samples are taken as they are from sdks/unity/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

Unity C# capability status
CapabilityStatus
Event sendingSupported
Batch sendingPartial
Consent handlingSupported
IdentitySupported
AttributionPartial
Deep linksPartial
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Unity C# verification chain
LinkStatus
SourcePassed
BuildPartial
TestPassed
Registry publicationPassed
Clean installPassed
Event receiptPassed
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.