Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 TheRichardGamer · Aug 08, 2016 at 07:57 PM · datadata storage

What is Metadata and how do I create it and use it for my games?

I head this term when I was looking for some ideas on how to make a rhythm game, and someone had posted and answer saying that one should create some kind of interface for creating tracks and something to store metadata for when the notes come in and where and stuff like that.

But I don't understand what he meant by 'Metadata'. What is it, exactly? I mean, googling it doesn't really say much, basically information about another piece of information.

And I don't know how one would store this in a file, but my best guess is that it would probably be in an xml-file or just a plain text-file.

Anyways, could you guys give me an example of some metadata, and I mean like text-examples, not just where you describe how it would work, but a piece of code that actually has something to do with storing metadata.

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Dinosaurs · Aug 08, 2016 at 09:09 PM

It sounds like in this case what was meant by metadata is a data format to match notes to timestamps in the song. So for example, that'd be a file that tells your game "At one minute and thirty seconds, spawn blue and yellow notes" The easiest way to deal with this would probably be to use Unity's built-in JSON serializer to store this sort of data: https://docs.unity3d.com/Manual/JSONSerialization.html

That'll let you easily import/export the data to Unity. There're examples on that page that show both how to save/load it and the format of a json file.

Another option might be to use a Scriptable Object to store that data: https://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/scriptable-objects

There are also a number of assets on the store that'll do this for you; you might want to look into Koreographer, for example: https://www.assetstore.unity3d.com/en/#!/content/44270

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

50 People are following this question.

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

Related Questions

Best way to store NPC data and how to do it? 1 Answer

My custom function for Updating a data string in an array causes deletion of all other data 0 Answers

How do I store my recorded notes in a json-file? 1 Answer

Scriptable Objects as a datatable 1 Answer

Storing data on a server to be used for player currency in a multiplayer game 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