オペレーティングシステム上でディレクトリパスを取得するためにEditorUtiliy.OpenFolderPanelメソッドを使用すると(Unity 2017.3のmacOSXでは、エディタが常にクラッシュします)Unity 2017.2またはそれ以前のバージョンで同じメソッドを使用するとユニティの、エディタがクラッシュしていません。Unity 2017.3 Editor EditorUtility.OpenFolderPanelを使用するとクラッシュします
どのように私はこの問題を解決することができますか?私を助けてください。あなたの時間
感謝。
private void SetRootDirectory()
{
string path = Application.dataPath + "/Resources/root.txt";
string rootPath = EditorUtility.OpenFolderPanel("Select Location", Application.dataPath, ""); //editor is crashing because of this line
using (FileStream fs = new FileStream(path, FileMode.Create))
{
using (StreamWriter writer = new StreamWriter(fs))
{
writer.Write(rootPath);
}
}
AssetDatabase.Refresh();
}
は、おそらくこれはあなたのアドバイスの@SurajSため –
おかげエディタ固有であるように、私はあまりにもUnityForumsで質問をユニティ・フォーラムに尋ねるべきです。 https://answers.unity.com/questions/1446417/unity-20173-editor-crash-when-use-editorutilityope.html –
2017.3には多くのバグがあります。たくさん。ロールバックするか、パッチを待つことをお勧めします。 –