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

Public Member Functions

 ToastEngine (string toastPath)
void Dispose ()
WorkspaceInfo CreateWorkspace (string type)
WorkspaceInfo OpenWorkspace (string assetUid)
WorkspaceInfo OpenWorkspaceFrom (string assetUid, string sourceUri)
 Opens a workspace bound to assetUid but loading its content from an autosave.
WorkspaceInfo PlayWorkspace (ulong sourceHandle)
 Clones the given workspace's live tree into a new ticking PlayWorkspace.
int TryGetViewportFrame (IntPtr dst, uint capacity, out ToastViewportFrame frame)
void RequestViewportReadback ()
bool EnableSharedViewport (ulong adapterLuid, byte[]? adapterUuid)
void DisableSharedViewport ()
int TryGetSharedViewportFrame (out ToastViewportSharedFrame frame)
bool ExportSharedViewportSlot (ulong generation, uint slot, out ToastViewportSharedHandles handles)
bool HoldSharedViewportSlot (ulong generation, uint slot)
void ReleaseSharedViewportSlot (ulong generation, uint slot, bool consumed)
void SignalClose ()
void ReloadGame ()

Static Public Member Functions

static void SetWindowState (bool focused, bool minimized)
 Unfocused holds the renderer at 30 fps, minimized stops rendering until the editor is restored.
static void SetShowDebugWindows (bool visible)
 The ImGui overlays drawn over the viewport, such as the performance window.
static T OnTickThread< T > (Func< T > work)
 Do not use the UI thread to tick the workspace since it can lead to racist conditions with lua.
static void OnTickThread (Action work)
static void RenamePrefabRoot (string path, string newName)
static void CreateTNode (string path, string nodeType)
static void ReloadManifest ()
static void ReloadProjectSettings ()
static void TestHaptic (string tomlText)
 Plays a haptic described by .thaptic TOML text on the active controller.
static void BakeAsset (string uid, string outPath)
static bool GenerateDataSchemaStubs (string outPath)
 Regenerates the Schemas.* lua stuff.

Properties

static bool IsEngineReady [get]
string ProjectPath [get]
string CorePath [get]

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