Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Random Binaries · Feb 26, 2012 at 01:27 AM · javascriptplayerrecordingdetail

Recording metrics?

How would you script the ability to save a new player and the time for the new player to complete a level of a game. Please give scripting examples. Thank you for your help.

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Berenger · Feb 26, 2012 at 02:34 AM 1
Share

We need more information about the platform you want to build your game on. And could you explain a little further by "save a new player and the time for the new player to complete a level of a game" ?

avatar image syclamoth · Feb 26, 2012 at 03:21 AM 1
Share

What, PlayerPrefs? Read through the entire script reference, and if you still don't have any ideas, come back here.

avatar image Random Binaries · Feb 26, 2012 at 06:46 PM 0
Share

I want to build a game for the web platform. Whilst the game is running I want to record the amount of people that play the game as well as the amount of time that each person plays. For example to assoicate PlayerA with the 5 $$anonymous$$utes of time they took to finish the game. How would I go about that using PlayerPrefs?

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by dannyskim · Feb 26, 2012 at 07:30 PM

Player prefs gives you the capability of writing key / value pairs to a text file stored locally on the machine that the client is running. With "metrics" tracking such as yours, you're looking at creating database information. So, you would either have to learn how to create your own databases and make query calls ( take for example SQL queries ) to your database server to store the information, or look for a vendor that supplies these services.

There isn't a one all solution for this if you decide to create it yourself. Another option would be to go to a third party analytics platform that stores this information for you. Flurry is a good example of this, and would do exactly what you're wanting:

http://www.flurry.com/

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Script crashes Unity 1 Answer

Singletons in music script? 2 Answers

Simple EXP Script In Javascript 0 Answers

unity 4.6 button functions? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges