docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CustomData

    CustomData(string, IDictionary<string, object>)

    Record a custom event, if the player has opted in to data collection (see OptIn method).

    A schema for this event must exist on the dashboard or it will be ignored.

    Declaration
    void CustomData(string eventName, IDictionary<string, object> eventParams)
    Parameters
    Type Name Description
    string eventName
    IDictionary<string, object> eventParams

    CustomData(string)

    Record a custom event that does not have any parameters, if the player has opted in to data collection (see OptIn method).

    A schema for this event must exist on the dashboard or it will be ignored.

    Declaration
    void CustomData(string eventName)
    Parameters
    Type Name Description
    string eventName
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)