unity editor stage setting
ステージのブロックは位置用に unity editorを作りました。
・プレファブを配置して、オブジェクト名とポジション、ローテーションをテキストに保存。
・テキストを読込んでプレファブをロード
メモ
オブジェクト名は(Clone)を削除して保存。
http://docs.unity3d.com/ScriptReference/Resources.Load.html
resuources.loadから生成。
http://docs.unity3d.com/ScriptReference/EditorUtility.SaveFilePanel.html
savefile
textのloadはTextAssetで
TextAsset txtdata= Resources.Load("stage/"+level) as TextAsset;
string[] data = txtdata.text.Split ('\n');