참고:게임밍 서비스 분석은 현재 프리뷰 패키지로 제공됩니다.게이밍 서비스 분석은 게임 성능과 플레이어 행동을 쉽게 파악하여 전략적 결정을 내릴 수 있도록 해주는 개선된 서비스입니다.문서를 참조하십시오.
AnalyticsEventTracker 컴포넌트를 사용하는 대신 AnalyticsEvent.Custom을 호출하여 스크립트를 통해 직접 커스텀 이벤트를 보낼 수 있습니다.
// Reference the Unity Analytics namespace
using UnityEngine.Analytics;
// Use this call for wherever a player triggers a custom event
AnalyticsEvent.Custom(string customEventName, IDictionary<string, object> eventData);
이름 | 유형 | 설명 |
---|---|---|
customEventName | 문자열 | 커스텀 이벤트의 이름입니다. 이름에는 “unity” 접두사를 포함할 수 없습니다. 이 접두사는 내부 Unity 애널리틱스 이벤트용입니다. |
eventData | dictionary | 커스텀 이벤트가 트리거될 때 Unity 애널리틱스에 전송되는 추가 파라미터입니다. eventData 키에는 “unity” 접두사를 포함할 수 없습니다. 이 접두사는 내부 Unity 애널리틱스 이벤트용입니다. |
다음 예제에서는 플레이어가 레벨에서 비밀 위치를 찾을 때 커스텀 이벤트를 전송합니다.
public void ReportSecretFound(int secretID){
AnalyticsEvent.Custom("secret_found", new Dictionary<string, object>
{
{ "secret_id", secretID },
{ "time_elapsed", Time.timeSinceLevelLoad }
});
}
2018–03–02 페이지 게시됨
2018–03–02 - 이 날짜를 기준으로 서비스가 Unity 5.2 이상 버전과 호환되지만, 버전 호환성은 변경될 수 있음
Unity 5.2의 새로운 기능
스탠다드 이벤트가 Unity 패키지로 추가됨
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.