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 /
  • Help Room /
avatar image
1
Question by Brantkings · Feb 03, 2018 at 10:31 PM · iosplayerprefssavingfilesystemtv

What is the most common way to implement save in Apple TV / tvOS? How does it implement PlayerPrefs?

So after digging in we discovered that tvOS won't allow local saving like any other platform. You need to use iCloud there's no way around it.

Digging it more, I discovered there IS a local way to store things, which is NSUserDefaults. But it has a maximum of 1Mbs and is stored in a place where the OS can just wipe it out if it needs, so it is NOT OPTIMAL for game saves, you don't want to lose your data randomly. Furthermore there's no way to access it natively in Unity, you have to resort to a plugin or writing the ObjectiveC code yourself.

What I want to know is, how does Unity implements PlayerPrefs on tvOS? Is it through NSUserDefaults or iCloud's Key-Value storage option? I've read sources that say either, so I'm not sure. If it uses the latter, an option instead of writing files could be serializing our data into a string and saving it on PlayerPrefs, which would be finally a solution for us without resorting to any more plugins (we just bought a plugin and implemented iCloud's documents, which aren't supported in tvOS and that is a nightmare).

And if that doesn't work, what is the most common way people use to implement saving in Apple TV, with Unity?

It's weird, the lack of documentation and people speaking about it on NET just make me thing nobody is doing anything with the platform...

Comment
Add comment · Show 2
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 paatz04 · Jul 01, 2019 at 03:42 AM 0
Share

Did you find a solution for this ?

avatar image Zimbres · Jul 24, 2019 at 10:36 PM 0
Share

looks like you're right. Nobody does a thing or... well... hope you found a solution. I'm also in charge of trying this too...

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by paatz04 · Jul 24, 2019 at 11:23 PM

Given the lack of local storage, we ended up implementing the iCloud KVS using the https://prime31.com/ iCloud Plugin. Only the Key Value Store will work on appleTV though. The storage is limited to 1000 keys and a maximum of 1MB.

PlayerPrefs do not use KVS by default - and I couldn't find any resource suggesting how to get that to work. I hope this is of any help

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

157 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 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 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

PlayerPrefs help ! 1 Answer

Saving In Between Scenes and Program Exit 0 Answers

Using PlayerPrefs to remember transform heirarchies? 0 Answers

open pdf on IOS 0 Answers

How to save the state of Canvases/Toggles? 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