/// <summary> /// Imports a new file by the given <see cref="ResourceLink"/>. /// </summary> /// <param name="resourceLink">The <see cref="ResourceLink"/> from which to load the resource.</param> public async Task ImportNewFileAsync(ResourceLink resourceLink) { m_currentFile = resourceLink; m_currentImportOptions = GraphicsCore.Current.ImportersAndExporters.CreateImportOptions(m_currentFile); base.RaisePropertyChanged(nameof(CurrentFile)); base.RaisePropertyChanged(nameof(CurrentImportOptions)); await m_renderLoop.Scene.ImportAsync(m_currentFile, m_currentImportOptions); await m_renderLoop.WaitForNextFinishedRenderAsync(); await SetInitialCameraPositionAsync(); }