Ejemplo n.º 1
0
        private static bool OnOpenAsset(int instanceID, int exceptionId)
        {
            var gameDataPath = AssetDatabase.GetAssetPath(instanceID);

            if (GameDataTracker.IsGameDataFile(gameDataPath) == false)
            {
                return(false);
            }

            var reference = ValidationException.GetReference(exceptionId);

            loadEditorTask = new Coroutine <bool>(LoadEditor(gameDataPath, reference, loadEditorTask));
            loadEditorTask.ContinueWith(t => EditorUtility.ClearProgressBar());

            return(true);
        }