• 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 exerion · Nov 29, 2012 at 11:17 AM · textsplitemailregexpreset

How to save script component variables at runtime from IOS device?

Heads up, I'm new to programming and Unity :P

I'm making a car game and distributing it to several remote testers using TestFlight. I have an in-game gui so the testers can change the characteristics of the car. I would like for the testers to be able to tweak the car and then somehow send back to me a preset of the car settings they like. Then I can assess the presets and amend our cars based on what the testers liked.

I've been scouring the net for hours trying to figure out how best to do this. The best possible solution I can see that isn't to involved is writing the settings to a string and emailing it to me using OpenURL. Then I can save it into a text file and use read it back into Unity using StreamReader or File.ReadAllText and Regex.Split.

Will this work? Can you think of a better solution?

Thanks :)

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 Graham-Dunnett · Nov 29, 2012 at 11:22 AM

Use WWWForm and post to your web server?

Write the data into a text/xml file in the app's Documents folder and ask the beta testers to copy that from the device and send to you?

If you extrapolate your requirement, and want to know for example where on the tracks the players get to, or how and when they stop playing. Or how long they spend playing. Or where they are based. Rf how many cars they set up. And so on ad infinitum. Then you probably want an analytics solution. For $40 Prime31 can sell you such a thing. Other solutions are available.

Comment
Add comment · Show 1 · 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 exerion · Nov 29, 2012 at 11:40 AM 0
Share

Thanks a lot Graham :) I'll have a look into those options.

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

11 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

Related Questions

Loading a text document without spaces 1 Answer

Random word from text file c# 3 Answers

Split string : how to automatically remove " ? 0 Answers

Regular Expressions in Unity 0 Answers

Splitting text into 2D array 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges