コード例 #1
0
    public static void ImportFMDLOption()
    {
        string windowPath = EditorUtility.OpenFilePanel("Select FMDL", "", "fmdl");

        if (!string.IsNullOrWhiteSpace(windowPath))
        {
            FmdlImporter.FMDLRead(windowPath);
            Debug.Log("Selected FMDL: " + windowPath);
        } //if
        else
            Debug.Log("No path selected.");
    } //ImportFMDLOption
コード例 #2
0
        public static void ImportFMDLOption()
        {
            string windowPath = EditorUtility.OpenFilePanel("Select FMDL", "", "fmdl");

            if (!string.IsNullOrWhiteSpace(windowPath))
            {
                FmdlImporter experimentalFmdlImporter = new FmdlImporter();
                experimentalFmdlImporter.ReadWithoutAssetImportContext(windowPath);
                Debug.Log("Selected FMDL: " + windowPath);
            } //if
            else
                Debug.Log("No path selected.");
        } //ImportFMDLOption