OptionalisInternalConstructor: booleanProtected_Whether gizmos are enabled in the viewport.
Protected_The move gizmo for moving wheels.
Protected_The output log window.
Protected_Play button for the test drive.
Protected_The window that manages the preview of the loaded resource.
Protected_The window that provides a discussion for the resource.
Protected_The resource that is currently being edited.
Protected_The window that inspects the loaded resource.
Protected_Manager for the test drive.
Protected_Tool selector for enabling/disabling the move gizmo.
Protected_The vehicle gizmo for selecing vehicle parts.
Protected_Outliner window of this key window.
Protected_The window that manages the viewport settings for the resource preview scene.
ProtectedonToggles gizmos in the viewport.
True, if gizmos are visible.
ProtectedonCalled by the project library whenever a library entry is removed.
The library entry about to be removed.
ProtectedonInvoked when the user modified the resource in the UI.
ProtectedonStarts or ends the test drive.
True, if the test drive was started.
ProtectedonInvoked when the viewport camera settings have been modified.
The new viewport camera settings
StatictoolbarA list of all currently active dockable windows on the key window.
A set of flags that customize the behavior of the key window.
The key window flags.
Sets the height of the window in points.
Sets the height of the window in pixels.
Gets the icon for the window.
Gets the icon for the window.
Determines if the key window's tab is visible.
Determines whether the window has been destroyed or not.
Checks whether the window currently has keyboard focus.
Determines if the resource is dirty.
Gets the key window which owns this window.
Returns the X position of the window in screen coordinates in points.
Specifies the local shortcut context. This context will be automatically disabled whenever the user switches focus from the context.
Retrieves the owning container.
Gets the window of the owning container. The owning container is window that serves as the host for one or multiple key windows.
Gets the parent EditorWindow.
The Vehicle that is used to preview the edited VehicleConfiguration.
Gets the RenderWindow associated with this EditorWindow.
Gets the resource or null, if not loaded.
Gets the resource handle or null, if not handle assigend.
Specifies the global shortcut context. This context will be always enabled as long as the window is active.
Determines the size of the keu window.
Sets the stylesheet for this window's UI surface.
Sets the stylesheet for this window's UI surface.
Gets the primary tool bar element.
Returns the X position of the window in screen coordinates in points.
Get the local undo redo of the key window.
Sets the width of the window in points.
Sets the width of the window in pixels.
StaticcurrentThe currently active key window. Usually this value is null, but can be set to the current window inside an Update call or when calling an event callback for menu or toolbar items.
Centers the window within it's parent window.
Clear the undo/redo history.
Virtual
Closes the key window.
Virtual
Creates the default layout for a key window.
ProtectedcreateCreates a new EditorWindow for usage on this KeyWindow. If the window was already opened before, the window won't be made visible.
The type of the editor window to be created.
The newly created editor window.
Creates the KeyWindowTutorial instance for the key window.
The KeyWindowTutorial instance or null if the key window does not support tutorials.
This method is called after the onInitialize method, so all buttons and elements should already be created that are required for the tutorial. If the key window requires dynamic resolution of references for the tutorial, the KeyWindowTutorial must be subclasses and the onResolveTutorialElement method must be overridden.
ProtecteddetermineVirtual
Determines whether the key window is read-only or not.
ProtecteddidVirtual
A method called internally after the last action is redone.
ProtecteddidVirtual
A method called internally after the last action is undone.
Docks the specified window to the key window. If the window does not exist yet, a new instance will be created.
Type of window to dock.
Optionallocation: EnumValue<DockLocation>
The dock location.
Optionalreference: DockableEditorWindow
The reference window. The location will determine how and where the new window will be docked.
OptionalrelativeSize: number
The relative size of the new window. Setting it to 0.5, causes dockwindows to be splitted equally.
Instance of the docked window.
ProtecteddockDocks a new EditorWindow into the given location.
The type of the editor window to be docked.
The relative location to dock the window to, relative to reference.
The reference window. Used to determine the meaning location.
OptionalrelativeSize: number
The relative size of the docked window. Setting it to 0.5, causes both the first and second window to have the same size.
The editor window instance of the given type.
ProtectedfindFinds the path to the inspector property for the given vehicle part.
The part to find the inspector path for.
Sets the given window type as locked. Disables undocking or docking
of other windows on the same space. Will also hide the tab bar and the window title.
ProtectedfreezeFreezes the dockable editor window of type windowType.
The type of the window to freeze.
Attempts to get a previously opened DockableEditorWindow.
Instance of the open window or null, if it does not exist yet.
Gets the current dockable window layout.
The dockable editor window layout.
ProtectedgetGets the type of the resource being edited.
ProtectedgetGets the friendly name of the resource type that is being edited by this window.
ProtectedgetGets an existing EditorWindow for usage on this KeyWindow.
The type of the editor window to be retrieved or created.
The editor window instance of the given type.
ProtectedinvalidateInvalidates the window title.
ProtectedisVirtual
Determines if the resource is being edited by this key window.
Virtual
Gets whether this KeyWindow should display the User List control on the main menu title bar.
Virtual
Gets whether this KeyWindow should use the main toolbar style.
Virtual
Loads the resource with the specified resource UUID.
The resource uuid.
Virtual
Loads the key window state to the one represented by state.
Locks the window to prevent it from closing.
ProtectedonReverts the current resource.
ProtectedonSaves the current resource.
ProtectedonAction that starts or ends the vehicle test drive.
Virtual
Method to override to implement destruction of custom windows. Called by the engine before the window is destroyed.
Virtual
Method to override to implement custom behavior of a window, called by the engine once per frame.
ProtectedonVirtual
Method to override to implement custom behavior of a window, called by the engine once per frame,
once all the windows had their onEditorUpdate() method called.
Virtual
Method to override to implement initialization of custom windows. Called by the engine after window creation.
ProtectedonVirtual
Invoked when the preview scene has been fully initialized.
ProtectedonVirtual
Invoked when a resource changed its dirty state.
ProtectedonVirtual
Invoked whenever a Resource handle changed.
ProtectedonInvoked when the resource was loaded.
ProtectedonInvoked when the resource was saved.
ProtectedonVirtual
Invoked every time a resource finalizes its streaming operation.
ProtectedonUpdates the window after the selection changed.
The selected vehicle parts.
ProtectedonProtectedonCalled when the viewport requests a context menu. This will open the context menu of the outliner with the current selection.
Virtual
Triggered whenever the window's screen dpi changes.
Virtual
Triggered whenever the window gains or loses focus.
True if focus was gained, false otherwise.
Virtual
Triggered whenever the window size changes.
New width of the window in pixels.
New height of the window in pixels.
Opens a DockableEditorWindow.
Instance of the open window.
ProtectedopenOpens a new EditorWindow for usage on this KeyWindow. If the window is already opened, it will be focused instead.
The type of the editor window to be created.
The newly opened editor window.
Opens the vehicle outliner window.
Brings the key window to the top.
ProtectedrebuildRebuilds the Vehicle component used to preview the edited VehicleConfiguration.
Virtual
Determines if the key window must be recreated when the specified module is being reloaded. This is an important task to do if the key window edits classes from the module that is being reloaded. In that case, the key window must be recreated - otherwise, it references outdated classes which results in undefined behavior that can destabilize the application.
The following are possible modules:
The fully qualified name of the module to be reloaded.
Executes the last command on the redo stack (last command we called undo on), re-applying its operation.
Registers a vehicle interactive gizmo with this key window.
The gizmo this window should use.
Resets the key window layout to the default.
ProtectedrevertVirtual
Reverts the resource to its last saved state.
Saves the resource to its resource location.
Determines if the user has to confirm the save operation.
OptionalonSuccess: () => void
Action called when the operation succeeds.
OptionalonFailure: () => void
Action called when saving the scene failed, or the user declined to save.
Virtual
Saves the current key window state. This state can be persisted to disk or saved in memory and later restored by calling LoadState().
An object that represents the KeyWindow saved state.
Virtual
Sets a predefined dockable editor window layout.
The layout to be set.
Defines the window maximum width and height in points.
Defines the window minimum width and height in points.
The minimum width of the window in points.
The minimum height of the window in points.
Moves the window on the desktop. Coordinates are in screen space using points.
Moves the window on the desktop. Coordinates are in screen space using pixels.
Resizes the window using a width and height in points.
Resizes the window using a width and height in pixels.
Toggles an existing toolbar button into an on or off state which changes the visuals of the button.
Name of the existing button to toggle.
True to toggle on, false to toggle off.
Executes the last command on the undo stack, undoing its operations.
Unlocks the window to allow to be closed by the user.
Toggles an existing toolbar button into an on or off state which changes the visuals of the button.
Name of the existing button to toggle.
Updates the toggle state of all main toolbar buttons in the toolbar.
ProtectedupdateUpdates the transform gizmo used to move the wheels around.
ProtectedwillVirtual
A method called internally before the last action is redone.
ProtectedwillVirtual
A method called internally before the last action is undone.
StaticonCalled by the project library whenever a library entry is removed. This is a helper function that may be used by other KeyWindow implementations which need to close when a resource is deleted.
The window to close if windowResource was deleted.
If this is deleted, window will close.
The library entry about to be removed.
Protected StaticopenInternal method used by the managed side to open a newly created KeyWindow object instance.
The key window instance.
StaticopenStaticopenOpens a new VehicleKeyWindow with the specified resource.
The VehicleConfiguration to be loaded in the key window.
The newly created key window.
StaticopenOpens a new VehicleConfiguration with the specified resourceUUID.
The newly created key window.
Protected StaticopenOpens a new ResourceKeyWindowBase of type with the specified resource.
The type of the ResourceKeyWindowBase subclass.
The Resource to be loaded in the key window.
The newly created key window.
Protected StaticopenOpens a new ResourceKeyWindowBase of type with the specified resourceUUID.
The type of the ResourceKeyWindowBase subclass.
The Resource to be loaded in the key window.
The newly created key window.
StaticraiseHelper method that allows other resource key window implementations to raise an existing key window in case a resource is already opened in another window. All KeyWindows of type T will be tested against predicate. The first window that is encountered where predicate returns true is raised and returned. If no such window is found, createState is called. The result is used as a state for a new key window, which is then returned.
The type of KeyWindow to open
A predicate that indicates if a given window can be raised. If this returns true for a window, that window will be raised and createState will not be called.
The raised window, or if no window was raised the newly created one.
The VehicleKeyWindow implements a KeyWindow to edit a VehicleConfiguration.