x


Editor Script - read a file or long string

Naively, every time I try defining a long string, MonoDevelop freezes and crashes.. I guess my editor script will have to read this long string from a file (WWW and yield StartCoroutine does not work as editor scripts).

How do you read a file, for an editor script?

more ▼

asked May 07 '12 at 05:54 AM

ina gravatar image

ina
3.3k 492 551 602

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

For the editor, you can use http://System.IO. I don't think it will be incorporated in the build. Also, try to write your string on several lines instead of one, it might help monodevelop.

more ▼

answered May 07 '12 at 06:05 AM

Berenger gravatar image

Berenger
11k 12 19 53

(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:

x1677
x527
x1

asked: May 07 '12 at 05:54 AM

Seen: 532 times

Last Updated: May 07 '12 at 06:05 AM