Skip to main content

Introduction

The Interface Manager provide a centralized location for dealing with Input, Object Management, Interaction, and UI. This object will automatically create itself will default settings whenever data is requested from it if there is not already an instance in your scene. A secondary canvas is also created specifically for system UI components such as Tooltips.

"Interface Manager"

Fields#

NameDescription
PersistMark this object as DontDestroyOnLoad
Input ManagerInput manager to use
Object ManagerObject manager to use
Use Existing CanvasUse the a canvas already in the scene
Use CanvasCanvas to use for UI
Include RaycasterAdd a Raycaster component to the canvas.
Tooltip PrefabPrefab to use when displaying a tooltip.
Enabled Object TooltipsEnable tooltips for non-UI elements
Tip OffsetPixel offset from cursor to use when displaying tooltip.
Display DelaySeconds to wait after cursor is over item to display tooltip
Additional TooltipsList of additional Tooltip Displays that can be found by id
Interactor PrefabInteraction UI prefab to use by default
Interaction TypeMethod of confirming interaction
Interaction ButtonButton to use for confirming interaction
Interaction KeyKey to use for confirming interaction
Additional InteractorsList of additional Interactor UIs that can be found by id
Activate First Tab StopAutomatically activate the first TabStop
Tab StyleMethod of performing tab stops
Tab ButtonButton to use for tabbing
Tab KeyKey to use for tabbing
On Next UpdateEvent raised each frame, subscriptions cleared at the end

Properties#

NameDescription
ActiveModalGets the currently active modal
CurrentReturns the current instance
InputReturns the current Input Manager
InterfaceFlagsGet/Set Interface Flags
hideHardwareCursorGets/Sets if the hardware pointer is hidden
localizationSettingsReturns current Localization Settings
LockPlayerControllerReturns if Interface Flags contains LockPlayerController
ObjectManagementReturns current Object Manager
ObjectsUnderPointerReturns a list of objects under the pointer
PreventInteractionsReturns if Interface Flags contains PreventInteractionUI
PreventPromptsReturns if Interface Flags contains PreventPrompts
PreventWindowsReturns if Interface Flags contains PreventWindows
PromptOpenReturns if a prompt is open
ShowInputCursorGets/Sets if Input Cursor should be shown
SuppressUIGets/Sets UI suppression state
UICanvasReturns current UI Canvas

Methods#

NameDescription
AddInteractorUIAdd an Interactor UI to the 'additionalInteractors' list
AddTooltipAdd a TooltipDisplay to the 'additionalTooltips' list
GetInteractorUIGet an Interactor UI by id
GetTooltipGet a TooltipDisplay by id
HideTooltipHide any currently active tooltip
IsBlockedByModalCheck if a GameObject is blocked by a modal
LoadSceneLoads a scene by index
NextTabSet focus to next Tab Stop
QuitExit the game or play mode
RemoveActiveModalRemove object from list of active modals
RemoveInteractorUIRemove an Interactor UI by id
RemoveTooltipRemove a TooltipDisplay by id
ObjectUnderPointerChecks if an object is under the pointer
OpenHyperlinkOpen a hyperlink
SetActiveModalSets a GameObject as an active modal
SetActiveInputMapSet the active input map
SyncRequestSync a request to the main GUI thread