Using an in-game editor to create built-in levels

So I’m working on a easy little puzzle game, and I’ve made an editor for myself to create all of the levels that I’m going to be releasing the game with.

Initially I’d planned to just save the level data with PlayerPrefs, but I don’t know how to get the level data from my editor on the iPhone (which is basically a different scene of the same game) back into Unity. The data is all strings and ints and vector3s.

I’m trying to streamline the process so I don’t have to go and hand type in this data into a game script. I play on shipping with a whole load of levels, so that would be way too time consuming.

How should I go about approaching this? Any suggestions?

Bump

Anyone?

Probably TextAssets would be easiest.

–Eric

ok, if I understand TextAssets right, I can use my editor to write a text file that the game will later import as a text file, right?

How would I get the text file that the game created from my iPhone editor back into the game project?

No, see the TextAsset code examples in the docs. It’s an asset like other assets.

–Eric