Toast Engine
Loading...
Searching...
No Matches
editor.Workspace.WorkspaceViewModel Class Reference
Inheritance diagram for editor.Workspace.WorkspaceViewModel:
Collaboration diagram for editor.Workspace.WorkspaceViewModel:

Public Member Functions

void NotePresentedFrame ()
Task WriteAutosaveAsync (string virtualPath)
void Dispose ()
void SetRootNode (string uid, string type)
void BindBackingFile (string virtualUri, string assetUid)
override bool OnClose ()
void StepCameraSpeedFromWheel (double delta)
void ResendViewState ()
void StopPlay ()
async Task< bool > ConfirmCloseAsync ()
async Task< bool > Save (bool closing=false)
async Task< bool > SaveAs ()
void DeleteAutosaves ()

Static Public Member Functions

static Task WaitUntilPlayHoldsAsync ()
static ? WorkspaceViewModel CreateNew (ToastEngine engine, string nodeType)
static ? WorkspaceViewModel OpenFile (ToastEngine engine, string assetUid, string virtualPath, string? recoverVirtualPath=null)
static async Task< WorkspaceViewModel?> OpenFileAsync (ToastEngine engine, string assetUid, string virtualPath, string? recoverVirtualPath=null)

Properties

ObservableCollection< RenderPassVM > RenderPasses = [] [get]
ToastEngine? Engine [get]
ulong Handle [get]
WorkspaceHistoryState History = null! [get]
bool PendingClose [get, set]
string? BackingUri [get]
string? BackingAssetUid [get]
string? RootUid [get]
string? RootType [get]
GizmoTool ActiveTool = GizmoTool.Select [get]
RenderMode ActiveRenderMode = RenderMode.Lit [get]
bool WorldSpace [get]
static bool AnyPlayActive [get]
static bool AnyPlayAdvancing [get]
ulong PlayHandle [get]
ulong EffectiveHandle [get]
bool IsPlaying [get]
bool IsSimulating [get]
bool IsPlayingInViewport [get]
bool IsPlayingExternal [get]
bool IsPlayModeActive [get]
bool CanPause [get]
bool IsOrbitCamera [get]
int SmoothFrames [get]
bool IsAutosaveDirty [get]
string? AutosaveFileName [get]

Events

static ? Action PlayAdvancingChanged
static ? Action PlayModeChanged

Member Function Documentation

◆ WriteAutosaveAsync()

Task editor.Workspace.WorkspaceViewModel.WriteAutosaveAsync ( string virtualPath)
inline

Property Documentation

◆ AutosaveFileName

string? editor.Workspace.WorkspaceViewModel.AutosaveFileName
get

◆ IsAutosaveDirty

bool editor.Workspace.WorkspaceViewModel.IsAutosaveDirty
get

The documentation for this class was generated from the following file:
  • editor/Workspace/WorkspaceViewModel.cs