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 Jul 24, 2016 at 10:09 PM by tanoshimi for the following reason:

http://answers.unity3d.com/questions/1219643/how-to-store-game-variables.html

avatar image
0
Question by shadowcalen1 · Jul 24, 2016 at 08:42 AM · savingtextbox

Using text box as data store?

I am new to unity and only have a basic understanding of coding. I have worked on two games before so I do have a basic understanding of how things work.

I would like to make a game, and my first issue will be data storage. Prior to unity I worked in roblox, a free online game making engine/ platform with high overhead. While unity is much more impressive then roblox, it lacks a few things that made roblox really easy to use.

The first of those things is the variable. Not the script variable, but a in game asset that had a name and a value property. The reason this variable was so useful is that it could be a parent and a child to any other object.

Instead of making a load of arrays if you wanted to make a dialog tree what you would do is quite literally make a dialog tree. You would start with a variable with the NPCs opening text and have the players response child to that. The NPC response for each would be child, and so on so forth. Its like being able to put a array inside a array, something that to my limited knowledge, you cant do. Another advantage of this type of data store is its infinity scalable and easy to edit. Now unity lacks this feature, but it has a asset that behaves in a similar manner, the text box. Now my question is multifold;

A- Would using textboxes to store data work.

B- Textboxes can only store strings, would there be issues putting floats and such in them (I know you would have to convert them)?

C- Would it be possible to save the data tree between loads? (As in between instances of the game).

D- Is there straight up more practical way of storing data

Thanks in advance for any answers.

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

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Using text boxes to store data? 0 Answers

Lerping saved position in FixedUpdate causes inconsistent in speed with the reply ! 0 Answers

how do i save my unity progress with my project?,how do i save my progress? 1 Answer

Saving tile based game 1 Answer

Saving game respectively my level, when I restart my game. 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