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 /
This question was closed Dec 21, 2016 at 10:29 AM by Xeong-Hu for the following reason:

Solved problem

avatar image
0
Question by Xeong-Hu · Dec 21, 2016 at 06:14 AM · scripting problemserializationloadsave data

Saving data through FileStream DataInfo? Think i'm misunderstanding something.

Alright, well i'm having this issue when I save data for each individual object, it loads the data as if it only saved one object's data.

Well here's what I mean.. In my script, when ever I press save data, the names of my object will be saved within the script.

But. When ever I load all of the names within the individual object's scripts. It's like they all become the name of the last saved object's name.

![alt text][2]

It's as if each individual save data is being saved over.

alt text

I notice I gave each individual object the same saved data path. Each script has the same savedata file path.

Which is named "/SaveData.Banana" Is that the issue? Am I over writing the save file? [2]: /storage/temp/84468-example.png

example.png (251.9 kB)
example2.png (65.1 kB)
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

  • Sort: 
avatar image
0

Answer by Xeong-Hu · Dec 21, 2016 at 10:26 AM

Yep. Nvm I totally understand it now.

But I can't describe it.

Ok, so I have this string called Name. I store Name into a data file, which when I execute the save button, it saves a file which is named SaveData.Banana.

This save function is in each GameObject because each Gameobject has the same script. Therefore, if I save the Name of one string name, it becomes stored into a Data called SavedData.Banana. Then I load SaveData.Banana into each GameObject giving them the same name.

So instead I just did sumthing like SavedData.Banana + IndexOf(gameObject) So it'll have a distinct and original save file and then ofcourse have an original load file.

IT'S GOOD!

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

Follow this Question

Answers Answers and Comments

81 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

Related Questions

Saving system tutorial / Load through main menu 1 Answer

Proper way to save Terrain for save game feature? 1 Answer

Save and load serialization problem 0 Answers

Using save options to create saves for toggle buttons, but won't compile! 1 Answer

Add an array to a class that has been Serialized with BinaryFormatter 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