예제 #1
0
        private void processImportButton()
        {
            if (!isDirectoryInProject())
            {
                Debug.LogError("Import directory is outside of project directory. Please select path in Assets/");
                return;
            }

            _importer.configure(_importDirectory, _currentSampleName, _addToCurrentScene);
            _importer.loadFromFile(_importFilePath);
        }
예제 #2
0
        private void processImportButton()
        {
            if (!isDirectoryInProject())
            {
                Debug.LogError("Import directory is outside of project directory. Please select path in Assets/");
                return;
            }

            if (Directory.Exists(_importDirectory))
            {
                if (!EditorUtility.DisplayDialog(
                        "Resources already existed",
                        "Are you sure you want to replace it? Don't forget to sync your prefab if necessary !",
                        "Replace",
                        "Cancel"
                        ))
                {
                    return;
                }
            }

            _importer.configure(_importDirectory, _currentSampleName, _addToCurrentScene);
            _importer.loadFromFile(_importFilePath);
        }