기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Analytics

Unity SDK

Client API

Analytics

이 페이지는 선택한 언어로 제공되지 않습니다.
LiveOps
​
​
Analytics
  • Overview
  • Get started
  • Pricing
  • Concepts
  • Tutorials
  • Reference
    • Standard events
    • Standard audiences
    • Reserved parameter names
    • Data Explorer V1 metrics
    • Data Explorer V2 measures and metrics
    • SDK Event class
    • SDK CustomEvent class
    • SDK behavior
    • SQL Data Explorer queryable tables
    • SQL Data Explorer cookbook
    • Data Access available views
    • Glossary
  • Privacy and consent
  • FAQ
  1. Unity Analytics

The CustomEvent class

Use the generic CustomEvent class to record events without creating dedicated event classes.
읽는 시간 1분
최근 업데이트: 7달 전

For simplicity and quick turn-around, the Analytics SDK offers a generic
CustomEvent
class that you can use for any custom event in a very similar way to the plain dictionary API used in earlier SDK versions. This comes at the cost of the type safety and validation options offered by using dedicated sub-classes for each type of event, but may be useful during migration or prototyping.
CustomEvent myEvent = new CustomEvent("MyEvent"){ { "fabulousString", "woah!" }, { "peculiarBool", true }, { "sparklingInt", 1337 }, { "spectacularFloat", 313.37f }, { "timelessTimestamp", DateTime.Now }};AnalyticsService.Instance.RecordEvent(myEvent);
경고
Although the parameter values are taken in as
object
type, values must actually be one of the following types:
string
,
int
,
long
,
float
,
double
,
bool
or
DateTime
. If you attempt to add a value of an unsupported type, the
CustomEvent
class throws an
ArgumentException
.
DateTime
support was introduced in version 6.2.0 of the SDK.

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.


    이 페이지의 문제 보고