碧血红天的HomePage

U3d杂谈 — 编辑器工具如何打开文件Picker

有时候在开发编辑器工具的时候,希望通过文件拾取器来获取一个文件或则一个文件夹。在Unity中的EditorUtility为我们提供了现成的方法:

string file = EditorUtility.OpenFilePanel("Open File Dialog", ".", "json");
string file = EditorUtility.OpenFolderPanel("Open Folder Dialog", ".","");

特意在此记录一笔,方便后面查找使用。

3 评论

  1. harvoni withdrawal symptoms pronounce ledipasvir Harvoni Generic India Price

  2. pg slot เว็บใหม่ has the strengths of various games, such as the game genre with a unique dimension, pleasing to the eye, easy to use, or it will be a game that updates new games selected for you every day at PG Slot.

  3. hi opp ggeis 2022 ert go fi

发表评论