Cogito, ergo sum

UE3:UISkin (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> UIRoot >> UIDataProvider >> UIDataStore >> UISkin
Known classes within UISkin:
Direct subclass:
This class in other games:

Represents a collection of UIStyles.

When a style is created, it is assigned a persistent STYLE_ID. All styles for a particular widget are stored in a single unreal package file. The root object for this package is a UISkin object. The resources required by the style may also be stored in the skin file, or they might be located in another package.

A game UI is required to have at least one UISkin package that will serve as the default skin. Only one UISkin can be active at a time, and all custom UISkins are based on the default UISkin. Custom UISkins may decide to override a style completely by creating a new style that has the same STYLE_ID as the skin to be replaced, and placing that skin into the StyleLookupTable under that STYLE_ID. Any styles which aren't specifically overridden in the custom UISkin are inherited from the default skin. By default, widgets will automatically be mapped to the customized version of the UIStyle contained in the custom UISkin, but the user may choose to assign a completely different style to a particular widget. This only changes the style of that widget for that skin set and any UISkin that is based on the custom UISkin. Custom UISkins can be hierarchical, in that custom UISkins can be based on other custom UISkins.



Type: Map{FName,struct FUIMouseCursor}

Modifiers: const, native, duplicatetransient

The cursors contained by this skin. Maps a unique tag (i.e. Arrow) to a cursor resource.


Type: Map{FName,class USoundCue*}

Modifiers: const, native, transient

Maps UI sound cue names to their corresponding sound cues. Used for quick lookup of USoundCues based on the UI sound cue name. Built at runtime from the SoundCues array.


Type: array<UISoundCue>

Modifiers: const, protected

the UI sound cues contained in this UISkin


Type: array<string>

Modifiers: const, transient

Contains the style group names for this style and all parent styles.


Type: array<string>

Modifiers: const, protected

The group names used by the styles in the skin package


Type: Map{struct FSTYLE_ID,class UUIStyle*}

Modifiers: const, native, transient

maps STYLE_ID to the UIStyle that corresonds to that STYLE_ID. Used for quickly finding a UIStyle based on a STYLE_ID. Built at runtime as the UISkin serializes its list of styles


Type: Map{FName,class UUIStyle*}

Modifiers: const, native, transient

Maps StyleTag to the UIStyle that has that tag. Used for quickly finding a UIStyle based on a style tag. Built at runtime as the UISkin serializes its list of styles.


Type: array<UIStyle>

Modifiers: const, instanced, protected

the styles stored in this UISkin

Default values[edit]

Property Value
Tag 'Styles'



Modifiers: native

Associates an arbitrary

name SoundName 
the name for this UISoundCue. this name is used by widgets to reference this sound, and must match

one of the values from the GameUISceneCient's list of available sound cue names

SoundCue SoundToPlay 
the actual sound that should be played


Native functions[edit]


native final function bool AddStyleGroupName (string StyleGroupName)

Adds a new style group to this skin.


  • StyleGroupName - the style group name to add


TRUE if the group name was successfully added.


native final function bool AddUISoundCue (name SoundCueName, SoundCue SoundToPlay)

Adds a new sound cue mapping to this skin's list of UI sound cues.


  • SoundCueName - the name to use for this UISoundCue. should correspond to one of the values of the UIInteraction.SoundCueNames array.
  • SoundToPlay - the sound cue that should be associated with this name; NULL values are OK.


TRUE if the sound mapping was successfully added to this skin; FALSE if the specified name was invalid or wasn't found in the UIInteraction's array of available sound cue names.


native final function int FindStyleGroupIndex (string StyleGroupName) const

Finds the index for the specified group name.


  • StyleGroupName - the group name to find


the index [into the skin's StyleGroupMap] for the specified style group, or INDEX_NONE if it wasn't found.


native final function GetAvailableStyles (out array<UIStyleout_Styles, optional bool bIncludeInheritedStyles)

Retrieve the list of styles available from this skin.


  • out_Styles - filled with the styles available from this UISkin, including styles contained by parent skins.
  • bIncludeInheritedStyles - if TRUE, out_Styles will also contain styles inherited from parent styles which aren't explicitely overridden in this skin


native final function UITexture GetCursorResource (name CursorName)

Looks up the cursor resource associated with the specified name in this skin's CursorMap.


  • CursorName - the name of the cursor to retrieve.


a pointer to an instance of the resource associated with the cursor name specified, or NULL if no cursors exist that are using that name


native final function GetSkinSoundCues (out array<UISoundCueout_SoundCues)

Retrieves the list of UISoundCues contained by this UISkin.


native final function GetStyleGroups (out array<stringStyleGroupArray, optional bool bIncludeInheritedGroups) const

Retrieves the full list of style group names.


  • StyleGroupArray - recieves the array of group names
  • bIncludeInheritedGroupNames - specify FALSE to exclude group names inherited from base skins.


native final function bool GetUISoundCue (name SoundCueName, out SoundCue out_UISoundCue)

Retrieves the SoundCue associated with the specified UISoundCue name.


  • SoundCueName - the name of the sound cue to find. should correspond to the SoundName for a UISoundCue contained by this skin
  • out_UISoundCue - will receive the value for the sound cue associated with the sound cue name specified; might be NULL if there is no actual sound cue associated with the sound cue name specified, or if this skin doesn't contain a sound cue using that name (use the return value to determine which of these is the case)


TRUE if this skin contains a UISoundCue that is using the sound cue name specified, even if that sound cue name is not assigned to a sound cue object; FALSE if this skin doesn't contain a UISoundCue using the specified name.


native final function bool IsInheritedGroupName (string StyleGroupName) const


TRUE if the specified group name exists and was inherited from this skin's base skin; FALSE if the group name doesn't exist or belongs to this skin.


native final function bool RemoveStyleGroupName (string StyleGroupName)

Removes a style group name from this skin.


  • StyleGroupName - the group name to remove


TRUE if this style group was successfully removed from this skin.


native final function bool RemoveUISoundCue (name SoundCueName)

Removes the specified sound cue name from this skin's list of UISoundCues


  • SoundCueName - the name of the UISoundCue to remove. should correspond to one of the values of the UIInteraction.SoundCueNames array.


TRUE if the sound mapping was successfully removed from this skin or this skin didn't contain any sound cues using that name;


native final function bool RenameStyleGroup (string OldStyleGroupName, string NewStyleGroupName)

Renames a style group in this skin.


  • OldStyleGroupName - the style group to rename
  • NewStyleGroupName - the new name to use for the style group


TRUE if the style group was successfully renamed; FALSE if it wasn't found or couldn't be renamed.



event SubscriberAttached (UIDataStoreSubscriber Subscriber)

Overrides: UIDataStore.SubscriberAttached

Don't let anything subscribe itself to this datastore.


event SubscriberDetached (UIDataStoreSubscriber Subscriber)

Overrides: UIDataStore.SubscriberDetached

Don't let anything subscribe itself to this datastore.