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
1
Question by diabloroxx · Jul 12, 2010 at 10:17 PM · prefabruntimesavexmldynamic

Saving gameobjects' properties for Dynamically growing prefabs

I intend to create a Scenario where the User can actually decorate his or her Park using Unity3d. This is what I need - 1. user selects the objects which he wants - tractor,benches,chairs, ponds etc. 2. he places them across the screen in any position. 3. The user then presses the Save button which would store the gameobjects and their locations online in MySql database. 4. When the user opens the app again, it will load his park exactly like how he left it.

I have looked into every Wiki and Thread Posts which are used for Dynamically loading the position and properties of the gameobjects. I figured out that I can actually store the data of each gameobject in MySql and then convert them into XML file. I can then read the XML file using the Code posted in Wiki.

But this is enough if the data stored is not too large or if the number of gameobjects are fixed. The problem is the number of gameobjects will be increasing tremendously over the age and I am looking out for a solution to actually build a game such that I can link the prefabs as new objects are added.

Will these tools help me with what I need. If not, please let me know why -

Asset Server - I am still trying to figure out what it does and if it will help me out. EZ Game Saver - This saves the player profile. but will it save the properties of each and every object that gets loaded?

Also for the Mysql/XML solution - I have trouble generating the XML and reading it online using the current Wiki for XML. Should I instead use the WWW tag to download the XML and then load the gameobjects on the screen? Is there a better solution as I feel eventually the server may run out of memory.

Thanks.

Comment
Add comment · Show 1
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 poncho · Dec 29, 2010 at 12:31 AM 0
Share

does you find anything on this subject?

the thing about reading from your database and then start building a runin scene?

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Tetrad · Jul 12, 2010 at 10:51 PM

Asset Server is only for version control/source control of your project. It doesn't really have anything to do with the back end.

Also you don't necessarily need to use XML. There are other ways of serializing your data. For example, you could set up some table where each prefab has a unique ID, and then write to a binary stream the ID of the prefab, the x/y/z of the position, and the x/y/z/w of the rotation. Then store that as a binary blob in your database.

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

No one has followed this question yet.

Related Questions

Avoid altering prefab at runtime 1 Answer

Creating/Saving prefabs during runtime? 7 Answers

Questions about XML save/load 0 Answers

XmlException: unexpected end of file. Current depth 1 Answer

create prefab at runtime 0 Answers


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