x


I'm using Java Script with import System.IO.

I'm using Java Script with import http://System.IO.

import http://System.IO; var fileName = "crayons.txt"; I play animation for using this script.

and i built this script to Xcode for iPhone from Unity1.5.1, and i did build & go. but when i runed application. iPhone could't load "crayons.txt" file i think. i did add "crayons.txt" file in Xcode. do i have to add source in Xcode? this app run in Unity without error.

Please let me know . or Tell me way to solved problem.

more ▼

asked Mar 15 '10 at 07:12 AM

Sun gravatar image

Sun
61 4 6 13

Never played with the iPhone version.. any help from this question? http://answers.unity3d.com/questions/5677/how-do-i-get-the-application-path

Mar 15 '10 at 10:44 AM Lipis

maybe you would like to use PlayerPrefs if the "crayons.txt" is not really large. :)

Mar 22 '10 at 01:18 PM naruse
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Would the Unity TextAsset class serve your purpose instead?

more ▼

answered Apr 30 '10 at 06:47 AM

Waz gravatar image

Waz
6.4k 22 33 70

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x969
x204
x31

asked: Mar 15 '10 at 07:12 AM

Seen: 2843 times

Last Updated: Mar 15 '10 at 10:39 AM