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 abi-kr01 · Feb 18, 2014 at 12:48 PM · loadstatesgame save

Save unity game play state

Hi i am trying to save my game state to my local computer by crating some short of file system that store my game state ,say i am playing brick breaker game and i have only 1 brick left to destroy and i want to destroy that last brick in next day. so what i want is a save and load button(i used gui for that) that will create a file which store the information of my whole game, where ball,brick is in the game so that when i click load it will open my window from from the position i left earlier when i was playing the game.

i have seen different type of ways to do it ,like XML serialization, mono serialization playerpref and followed a link click to see but solution provided cant load if any thing has been deleted (say i used xml serialization to save the state of my cube and during run time if i delete the cube it will not restore my cube back which it should because when i click the save button everything must be save ). thanks in advance

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
0

Answer by Drake89 · Feb 18, 2014 at 03:03 PM

http://www.youtube.com/watch?v=gIYIZzzAJPg

Comment
Add comment · Show 4 · 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
avatar image abi-kr01 · Feb 19, 2014 at 10:52 AM 0
Share

player preference can save data during run time but can it store data in some location like servers or in my computer during run time

avatar image whydoidoit · Feb 19, 2014 at 10:57 AM 0
Share

It stores it on your computer or device. You'd need another method to store data on a server.

avatar image abi-kr01 · Feb 19, 2014 at 01:39 PM 0
Share

thanks $$anonymous$$ike i m using ur plugin from asset store i want to store (position,rotation etc which ur script does for that i follow ur wizard settings ->store information it has id and all other nested codes which is difficult to understand )the location on web but for now i can store it in my pc .if it already has the stored value then it should replace the executing one(which is not a big problem),but what i can't understand is where are the file that are generated when i click save and how can i target it to store my values wherever i like .

avatar image whydoidoit · Feb 19, 2014 at 04:31 PM 0
Share

Unity Serializer has save object to server, load object from server built in. Check out the LevelSerializer stuff - SaveObjectTreeToServer etc.

You should just have to tag up the objects you want stored - there's a lot of code, hopefully you don't need much of it.

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

20 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

Related Questions

Problem with Loading States 0 Answers

Saving/Loading variables 1 Answer

Not loading an object if it have be retained from a previous scene. 1 Answer

how to load images from hard disk to gui buttons? 1 Answer

Feedback on load & save "system" & how to make a "global"(?) script? 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