Mostly Harmless
UE3:UTUIScene (UDK)
Object >> UIRoot >> UIScreenObject >> UIScene >> UTUIScene |
Contents
- 1 Constants
- 2 Properties
- 3 Delegates
- 4 Functions
- 4.1 Static functions
- 4.2 Native functions
- 4.3 Events
- 4.4 Other instance functions
- 4.4.1 BeginHideAnimation
- 4.4.2 BeginShowAnimation
- 4.4.3 CheckLinkConnectionAndError
- 4.4.4 ConsoleCommand
- 4.4.5 DisplayMessageBox
- 4.4.6 FinishCloseScene
- 4.4.7 FinishOpenScene
- 4.4.8 GetCommonOptionsURL
- 4.4.9 GetInputBoxScene
- 4.4.10 GetMessageBoxScene
- 4.4.11 GetPlayerControllerId
- 4.4.12 GetPlayerIndex
- 4.4.13 GetPlayerName
- 4.4.14 GetPlayerProfile
- 4.4.15 GetPlayerProfileFromPC
- 4.4.16 GetPRIOwner
- 4.4.17 GetUTInteraction
- 4.4.18 NotifyChildGameSessionEnded
- 4.4.19 NotifyGameSessionEnded
- 4.4.20 OnCurrentScene_HideAnimationEnded
- 4.4.21 OnPendingCloseScene_HideAnimationEnded
- 4.4.22 OpenSceneByName
- 4.4.23 PlaySound
- 4.4.24 SavePlayerProfile
- 4.4.25 SetupButtonBar
- Package:
- UTGame
- Direct subclasses:
- UTUIFrontEnd, UTUIFrontEnd_MapSelection, UTUIFrontEnd_TitleScreen, UTUIScene_Hud, UTUIScene_MessageBox, UTUIScene_OnlineToast, UTUIScene_SaveProfile
- This class in other games:
- UT3
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Our UIScenes provide PreRender and tick passes to our Widgets
Constants
See UTUIScene constants.
Properties
Property group 'Editor'
bEditorRealTimePreview
Type: bool
Modifiers: transient
Property group 'Flags'
bIgnoreAxisInput
Type: bool
Internal variables
bHidingScene
Type: bool
Modifiers: transient
bShouldPerformScriptTick
Type: bool
Whether to call script tick for this scene
bShowingScene
Type: bool
Modifiers: transient
Animation flags, used by the tick function to determine which update func to call.
bSkipPendingCloseSceneNotify
Type: bool
Modifiers: transient
Whether or not to skip the kismet notify for the close scene that is pending.
InputBoxScene
Type: UIScene
Modifiers: transient
MessageBoxScene
Type: UIScene
Modifiers: transient
Global scene references, only scenes that are used in-game and in-menus should be referenced here.
PendingCloseScene
Type: UIScene
Modifiers: transient
Pending scene to close since we are waiting for the current scene's exit animation to end.
PendingOpenScene
Type: UIScene
Modifiers: transient
Pending scene to open since we are waiting for the current scene's exit animation to end.
PendingPlayerOwnerIndex
Type: int
Modifiers: transient
Default values
Property | Value |
---|---|
SceneSkin | UISkin'UI_Skin_Derived.UTDerivedSkin' |
Subobjects
SceneEventComponent
Class: Engine.UIComp_Event
Inherits from: UIScene.SceneEventComponent
No new values.
Delegates
OnHideAnimationEnded
Callback for when the scene's hide animation has ended.
OnSceneOpened
Callback for when a scene has opened after hiding the topmost scene.
OnShowAnimationEnded
Callback for when the scene's show animation has ended.
Functions
Static functions
ClearScreenWarningMessage
Clears the screen warning message if one was set. It will no longer be rendered.
FindDataStore
Returns:
- Returns a datastore given its tag and player owner.
GetGameInterface
Returns:
- Returns a reference to the online subsystem game interface.
GetPlayerInterface
Returns:
- Returns a reference to the online subsystem player interface.
GetPlayerInterfaceEx
Returns:
- Returns a reference to the online subsystem player interface ex.
ShowScreenWarningMessage
Displays a screen warning message. This message will be displayed prominently centered in the viewport and will persist until you call ClearScreenWarningMessage(). It's useful for important modal warnings, such as when the controller is disconnected on a console platform.
Parameters:
- Message - Message to display
StaticOpenScene
Opens a scene without any special hiding animation for previous scenes.
TrimWhitespace
Trims whitespace from the beginning and end of a string.
Native functions
ActivateLevelEvent
Activates a level remote event in kismet.
GetPawnOwner
Returns the Pawn associated with this Hud
GetUTPlayerOwner
Get the UTPlayerController that is associated with this Hud
IsGame
Returns:
- the contents of GIsGame
SetScreenResolution
Sets the screen resolution.
Parameters:
- ResX - Width of the screen
- ResY - Height of the screen
- bFullscreen - Whether or not we are fullscreen.
StartDedicatedServer
Starts a dedicated server and kills the current process.
ViewportDeProject
Converts a 2D Screen coordiate in to 3D space
Parameters:
- LocalPlayerOwner - The LocalPlayer that owns the viewport where the projection occurs
- ScreenLocation - Where on the screen are we converting from
- OutLocation - Returns the Location in world space
- OutDirection - Returns the view direction
ViewportProject
Converts a 2D Screen coordiate in to 3D space
Parameters:
- LocalPlayerOwner - The LocalPlayer that owns the viewport where the projection occurs
- WorldLocation - The world location to project to
- OutScreenLocation - Returns the location in 2D space
Events
CloseScene
Overrides: UIScene.CloseScene
Closes a UI Scene given a reference to an previously open scene.
Parameters:
- SceneToClose - Scene that we want to close.
- bSkipKismetNotify - Whether or not to close the kismet notify for the scene.
- bSkipAnimation - Whether or not to skip the close animation for this scene.
IsControllerInput
Returns whether or not the input passed in is a gamepad input event.
Parameters:
- KeyName - Key name to check
Returns:
- Returns TRUE if the input key is from a gamepad, FALSE otherwise.
OpenScene
Overrides: UIScene.OpenScene
Opens a UI Scene given a reference to a scene to open.
Parameters:
- SceneToOpen - Scene that we want to open.
- bSkipAnimation - specify TRUE to indicate that opening animations should be bypassed.
- SceneDelegate - if specified, will be called when the scene has finished opening.
TickScene
Called every frame if bShouldPerformScriptTick is true
Parameters:
- DeltaTime - is the time in seconds for this frame
UIAnimationEnded
Overrides: UIScene.UIAnimationEnded
Called when an animation on this scene has finished.
Other instance functions
BeginHideAnimation
Starts the exit animation for the scene.
Returns:
- TRUE if there's animation for this scene, FALSE otherwise.
BeginShowAnimation
Starts the show animation for the scene.
Parameters:
- bInitialActivation - TRUE if the scene is being opened; FALSE if the another scene was closed causing this one to become the topmost scene.
- bBypassAnimation - TRUE to force all animations to their last frame, effectively bypassing animations. This can be necessary for e.g. scenes which start out off-screen or something.
Returns:
- TRUE if there's animation for this scene, FALSE otherwise.
CheckLinkConnectionAndError
Returns:
- Checks to see if the platform is currently connected to a network.
ConsoleCommand
Executes a console command.
Parameters:
- string - Cmd Command to execute.
DisplayMessageBox
Displays a very simple OK message box with the specified message and title.
Parameters:
- Message - Message markup for the messagebox
- Title - Title markup for the messagebox
Returns:
- Returns a reference to the message box scene that was displayed.
FinishCloseScene
Closes a UI Scene given a reference to an previously open scene.
Parameters:
- SceneToClose - Scene that we want to close.
FinishOpenScene
Finishes opening a scene, usually called when a hide animation has ended.
Parameters:
- SceneToOpen - the scene to open
- bSkipAnimation - specify TRUE to bypass the scene's opening animation
- bSkipKismetNotify - specify TRUE to prevent the 'OpeningMenu' level event from being activated.
Returns:
- reference to the UIScene instance that was opened.
GetCommonOptionsURL
Returns:
- Generates a set of URL options common to both instant action and host game.
GetInputBoxScene
Returns:
- Opens the input box scene and returns a reference to it.
GetMessageBoxScene
Returns:
- Opens the message box scene and returns a reference to it.
GetPlayerControllerId
Returns:
- Returns the controller id of a player given its player index.
GetPlayerIndex
Returns:
- Returns the player index of the player owner for this scene.
GetPlayerName
Returns:
- Returns the name of the specified player if they have an alias or are logged in, or "DefaultPlayer" otherwise.
GetPlayerProfile
Returns the Player Profile for a given player index.
Parameters:
- PlayerIndex - The player who's profile you require
Returns:
- the profile precast to UTProfileSettings
GetPlayerProfileFromPC
Returns the Player Profile for a given player index.
Parameters:
- PC - The PlayerContorller of the profile you require.
Returns:
- the profile precast to UTProfileSettings
GetPRIOwner
Returns the PRI associated with this hud
GetUTInteraction
Returns:
- Return a reference to the UT specific version of the UI interaction.
NotifyChildGameSessionEnded
NotifyGameSessionEnded
Overrides: UIScene.NotifyGameSessionEnded
Called when the current map is being unloaded. Cleans up any references which would prevent garbage collection.
OnCurrentScene_HideAnimationEnded
Callback for when the current scene's hide animation has completed.
OnPendingCloseScene_HideAnimationEnded
Callback for when the scene we are closing's hide animation has completed.
OpenSceneByName
Opens a UI Scene given a reference to a scene to open.
Parameters:
- SceneToOpen - Scene that we want to open.
PlaySound
Allows easy access to playing a sound
Parameters:
- InSoundCue - The Cue to play
- SoundLocation - Where in the world to play it. Defaults at the Player's position
SavePlayerProfile
Saves the profile for the specified player index.
Parameters:
- PlayerIndex - The player index of the player to save the profile for.
SetupButtonBar
Function that sets up a buttonbar for this scene, automatically routes the call to the currently selected tab of the scene as well.