Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Alignment | ElementAlignment | View alignment. | |||||||||||||||||||||
Used to align the view relative to the layout parent region it resides in. Enum Values
| |||||||||||||||||||||||
Alpha | float | Alpha value. | |||||||||||||||||||||
Can be used to adjust the alpha color of this view and all its children. E.g. used for fade in/out animations. Is separate from and different from the background color of the view as it affects the children as well. | |||||||||||||||||||||||
BackgroundColor | Color | Background color of the view. | |||||||||||||||||||||
Background color of the view. | |||||||||||||||||||||||
BackgroundImage | SpriteAsset | Background image sprite. | |||||||||||||||||||||
The sprite that will be rendered. | |||||||||||||||||||||||
BackgroundImageEventAlphaThreshold | float | Alpha threshold for letting through events. | |||||||||||||||||||||
The alpha threshold specifying the minimum alpha a pixel must have for the event to be passed through. | |||||||||||||||||||||||
BackgroundImageFillAmount | float | Background image fill amount. | |||||||||||||||||||||
Amount of the Image shown when the Image.type is set to Image.Type.Filled. | |||||||||||||||||||||||
BackgroundImageFillCenter | bool | Indicates if center should be filled. | |||||||||||||||||||||
Boolean indicating whether or not to render the center of a Tiled or Sliced image. | |||||||||||||||||||||||
BackgroundImageFillClockwise | bool | Indicates if the image should be filled clockwise. | |||||||||||||||||||||
Whether the Image should be filled clockwise (true) or counter-clockwise (false). | |||||||||||||||||||||||
BackgroundImageFillMethod | FillMethod | Background image fill method. | |||||||||||||||||||||
Indicates what type of fill method should be used. Enum Values
| |||||||||||||||||||||||
BackgroundImageFillOrigin | int | Background image fill origin. | |||||||||||||||||||||
Controls the origin point of the Fill process. Value means different things with each fill method. | |||||||||||||||||||||||
BackgroundImageMaskable | bool | Indicates if the image is maskable. | |||||||||||||||||||||
Indicates if the background image graphic is to be maskable. | |||||||||||||||||||||||
BackgroundImageOverrideSprite | SpriteAsset | Background image override sprite. | |||||||||||||||||||||
Set an override sprite to be used for rendering. If set the override sprite is used instead of the regular image sprite. | |||||||||||||||||||||||
BackgroundImagePreserveAspect | bool | Preserve aspect ratio. | |||||||||||||||||||||
Indicates whether this image should preserve its Sprite aspect ratio. | |||||||||||||||||||||||
BackgroundImageType | Type | Type of background image. | |||||||||||||||||||||
The type of the image sprite that is to be rendered. Enum Values
| |||||||||||||||||||||||
BackgroundMaterial | Material | Background image material. | |||||||||||||||||||||
Background image material. | |||||||||||||||||||||||
BaseDirectory | string | Base directory. | |||||||||||||||||||||
Specifies the base directory to be used by the view and its children. The base directory is used when loading resources such as sprites, fonts, etc. | |||||||||||||||||||||||
BasedOn | string | Based on style. | |||||||||||||||||||||
Used in style definition to specify which style it's based on. | |||||||||||||||||||||||
ButtonAdjustToText | AdjustToText | Adjusts the combo box button to the text. | |||||||||||||||||||||
An enum indiciating how the combo box button should adjust its size to the label text. Enum Values
| |||||||||||||||||||||||
ButtonAlignment | ElementAlignment | Combo box button alignment. | |||||||||||||||||||||
Specifies the alignment of the combo box button. Enum Values
| |||||||||||||||||||||||
ButtonColor | Color | Combo box button image color. | |||||||||||||||||||||
The color of the combo box button image. | |||||||||||||||||||||||
ButtonFont | Font | Combo box button text font. | |||||||||||||||||||||
The font of the combo box button label. | |||||||||||||||||||||||
ButtonFontColor | Color | Combo box button text font color. | |||||||||||||||||||||
The font color of the combo box button label. | |||||||||||||||||||||||
ButtonFontSize | int | Combo box button text font size. | |||||||||||||||||||||
The font size of the combo box button label. | |||||||||||||||||||||||
ButtonFontStyle | FontStyle | Combo box button text font style. | |||||||||||||||||||||
The font style of the combo box button label. Enum Values
| |||||||||||||||||||||||
ButtonHeight | ElementSize | Combo box button height. | |||||||||||||||||||||
Specifies the height of the combo box button either in pixels or percents. | |||||||||||||||||||||||
ButtonImage | SpriteAsset | Combo box button image sprite. | |||||||||||||||||||||
The sprite that will be rendered as the combo box button. | |||||||||||||||||||||||
ButtonImageType | Type | Combo box button image type. | |||||||||||||||||||||
The type of the image sprite that is to be rendered as the combo box button. Enum Values
| |||||||||||||||||||||||
ButtonLineSpacing | float | Combo box button text line spacing. | |||||||||||||||||||||
The line spacing of the combo box button label. | |||||||||||||||||||||||
ButtonMargin | ElementMargin | Combo box button margin. | |||||||||||||||||||||
Specifies the margin of the combo box button. | |||||||||||||||||||||||
ButtonMaterial | Material | Combo box button image material. | |||||||||||||||||||||
The material of the combo box button image. | |||||||||||||||||||||||
ButtonOffset | ElementMargin | Combo box button offset. | |||||||||||||||||||||
Specifies the offset of the combo box button. | |||||||||||||||||||||||
ButtonOutlineColor | Color | Combo box button text outline color. | |||||||||||||||||||||
The outline color of the combo box button label. | |||||||||||||||||||||||
ButtonOutlineDistance | Vector2 | Combo box button text outline distance. | |||||||||||||||||||||
The distance of the combo box button label outline. | |||||||||||||||||||||||
ButtonShadowColor | Color | Combo box button text shadow color. | |||||||||||||||||||||
The shadow color of the combo box button label. | |||||||||||||||||||||||
ButtonShadowDistance | Vector2 | Combo box button text shadow distance. | |||||||||||||||||||||
The distance of the combo box button label shadow. | |||||||||||||||||||||||
ButtonSupportRichText | bool | Supports rich text. | |||||||||||||||||||||
Boolean indicating if the combo box button label supports rich text. | |||||||||||||||||||||||
ButtonText | string | Combo box button text. | |||||||||||||||||||||
The text of the combo box button label. | |||||||||||||||||||||||
ButtonTextAlignment | ElementAlignment | Combo box button text alignment. | |||||||||||||||||||||
The alignment of the text inside the combo box button label. Can be used with TextMargin and TextOffset to get desired positioning of the text. Enum Values
| |||||||||||||||||||||||
ButtonTextMargin | ElementMargin | Combo box button text margin. | |||||||||||||||||||||
The margin of the combo box button label. Can be used to adjust the text positioning. | |||||||||||||||||||||||
ButtonTextOffset | ElementMargin | Combo box button text offset. | |||||||||||||||||||||
The offset of the combo box button label. Can be used with TextMargin and TextAlignment to get desired positioning of the text. | |||||||||||||||||||||||
ButtonTextPadding | ElementMargin | Combo box button text padding. | |||||||||||||||||||||
The combo box button TextPadding is used when AdjustToText is set. It determines the additional padding to be added to the size of the button when it adjusts to the text. | |||||||||||||||||||||||
ButtonWidth | ElementSize | Combo box button width. | |||||||||||||||||||||
Specifies the width of the combo box button either in pixels or percents. | |||||||||||||||||||||||
CanvasOverrideSorting | bool | Override combo box list canvas sort order. | |||||||||||||||||||||
Boolean indicating if the sort order should be overriden (not inherited from parent canvas). | |||||||||||||||||||||||
CanvasSortingOrder | int | Combo box list canvas sorting order. | |||||||||||||||||||||
Combo box list canvas draw order within a sorting layer. | |||||||||||||||||||||||
DisableInteractionScrollDelta | List | Scroll delta distance for disabling interaction. | |||||||||||||||||||||
If set any interaction with child views (clicks, etc) is disabled when the specified distance has been scrolled. This is used e.g. to disable clicks while scrolling a selectable list of items. | |||||||||||||||||||||||
Height | ElementSize | The height of the view. | |||||||||||||||||||||
Specifies the height of the view either in pixels or percents. | |||||||||||||||||||||||
HideFlags | HideFlags | Hide flags for the game object. | |||||||||||||||||||||
Bit mask that controls object destruction, saving and visibility in editor. Enum Values
| |||||||||||||||||||||||
Id | string | The ID of the view. | |||||||||||||||||||||
Specifies a unique ID for the view. Used to map the view to reference fields on the parent view model. Provides a way to reference the view in data bindings. Is used as selectors in styles. | |||||||||||||||||||||||
IsActive | bool | Indicates if the view is enabled. | |||||||||||||||||||||
Activates/deactivates the view. If set to false in this or in any parent view, all components are disabled, attached renderers are turned off, etc. Any components attached will no longer have Update() called. | |||||||||||||||||||||||
IsDestroyed | bool | Indicates if the view has been destroyed by GameObject.Destroy(). | |||||||||||||||||||||
IsDropUp | bool | Indicates if the combo box is a drop-up list. | |||||||||||||||||||||
Boolean indicating if the combo box should open above instead of below the combo box button. | |||||||||||||||||||||||
IsDynamic | bool | Indicates if the view has been created dynamically. | |||||||||||||||||||||
IsInitialized | bool | Gets or sets bool indicating if the view has been initialized. | |||||||||||||||||||||
IsScrollable | bool | Indicates if the combo box list is scrollable. | |||||||||||||||||||||
Boolean indicating if the combo box list is scrollable. The height of the scrollable list can be set by the ListHeight field. | |||||||||||||||||||||||
IsTemplate | bool | Indicates if this view is to be used as a template. | |||||||||||||||||||||
A template view is used to create dynamic instances of the view. Used by certain views such as the List and TabPanel. | |||||||||||||||||||||||
IsVisible | bool | Indicate if the view is visible. | |||||||||||||||||||||
Can be used to adjust the visiblity of the view. If set to false the view is made invisible but unlike when deactivating the view, invisible views are still is active and takes up space. | |||||||||||||||||||||||
Item | object | Item data. | |||||||||||||||||||||
Provides a mechanism to bind to dynamic list data. The item is set, e.g. by the List view on the child views it generates for its dynamic list data. The Item points to the list item data the view is associated with. | |||||||||||||||||||||||
Items | IObservableList | User-defined list data. | |||||||||||||||||||||
Can be bound to an generic ObservableList to dynamically generate combo box items based on a template. | |||||||||||||||||||||||
ItemSelected | ViewAction | ||||||||||||||||||||||
LayoutRoot | UserInterface | Gets layout root canvas. | |||||||||||||||||||||
ListAlignment | ElementAlignment | Combo box list alignment. | |||||||||||||||||||||
Specifies the alignment of the combo box list. Enum Values
| |||||||||||||||||||||||
ListColor | Color | Combo box list image color. | |||||||||||||||||||||
The color of the combo box list image. | |||||||||||||||||||||||
ListContentAlignment | ElementAlignment | The alignment of combo box list items. | |||||||||||||||||||||
If the combo box list items varies in size the content alignment specifies how the combo box list items should be arranged in relation to each other. Enum Values
| |||||||||||||||||||||||
ListContentMargin | List | Combo box list content margin. | |||||||||||||||||||||
Sets the margin of the combo box list mask view that contains the contents of the combo box list. | |||||||||||||||||||||||
ListHeight | ElementSize | Combo box list image height. | |||||||||||||||||||||
Specifies the height of the combo box list image either in pixels or percents. Used when IsScrollable is True to control the height of the scrollable viewport. | |||||||||||||||||||||||
ListImage | SpriteAsset | Combo box list image sprite. | |||||||||||||||||||||
The sprite that will be rendered as the combo box list. | |||||||||||||||||||||||
ListImageType | Type | Combo box list image type. | |||||||||||||||||||||
The type of the image sprite that is to be rendered as the combo box list. Enum Values
| |||||||||||||||||||||||
ListMargin | ElementMargin | Combo box list image offset. | |||||||||||||||||||||
Specifies the offset of the combo box list image. | |||||||||||||||||||||||
ListMaskAlignment | List | Combo box list mask alignment. | |||||||||||||||||||||
Specifies the alignment of the list mask. | |||||||||||||||||||||||
ListMaskColor | List | Combo box list mask image color. | |||||||||||||||||||||
The color of the list max image. | |||||||||||||||||||||||
ListMaskHeight | List | The height of the list mask image. | |||||||||||||||||||||
Specifies the height of the list mask image either in pixels or percents. | |||||||||||||||||||||||
ListMaskImage | List | Combo box list mask image sprite. | |||||||||||||||||||||
The sprite that will be rendered as the list max. | |||||||||||||||||||||||
ListMaskImageType | List | Combo box list mask image type. | |||||||||||||||||||||
The type of the image sprite that is to be rendered as the list max. | |||||||||||||||||||||||
ListMaskMaterial | List | Combo box list mask image material. | |||||||||||||||||||||
The material of the list max image. | |||||||||||||||||||||||
ListMaskOffset | List | The offset of the list mask image. | |||||||||||||||||||||
Specifies the offset of the list mask image. | |||||||||||||||||||||||
ListMaskShowGraphic | List | Indicates if list mask should be rendered. | |||||||||||||||||||||
Indicates if the list mask, i.e. the list mask background image sprite and color should be rendered. | |||||||||||||||||||||||
ListMaskWidth | List | The width of the list mask image. | |||||||||||||||||||||
Specifies the width of the list mask image either in pixels or percents. | |||||||||||||||||||||||
ListMaterial | Material | Combo box list image material. | |||||||||||||||||||||
The material of the combo box list image. | |||||||||||||||||||||||
ListOffset | ElementMargin | Combo box list image offset. | |||||||||||||||||||||
Specifies the offset of the combo box list image. | |||||||||||||||||||||||
ListOrientation | ElementOrientation | Combo box list orientation. | |||||||||||||||||||||
Specifies the orientation of the combo box list. Enum Values
| |||||||||||||||||||||||
ListSortDirection | ElementSortDirection | Sort direction. | |||||||||||||||||||||
If combo box list items has SortIndex set they can be sorted in the direction specified. Enum Values
| |||||||||||||||||||||||
ListSpacing | ElementSize | Spacing between combo box list items. | |||||||||||||||||||||
The spacing between combo box list items. | |||||||||||||||||||||||
ListWidth | ElementSize | Combo box list image width. | |||||||||||||||||||||
Specifies the width of the combo box list image either in pixels or percents. | |||||||||||||||||||||||
Margin | ElementMargin | View margin | |||||||||||||||||||||
Determines the size of the content region relative the view's width and height. Adding margins to a view does not change its width or height. | |||||||||||||||||||||||
Offset | ElementMargin | View offset. | |||||||||||||||||||||
Determines the offset of the content region relative to the view's position. | |||||||||||||||||||||||
OffsetFromParent | ElementMargin | View offset from parent. | |||||||||||||||||||||
Used by parent views to adjust the positioning of its children without affecting the internal offset of the children. | |||||||||||||||||||||||
OverrideHeight | ElementSize | Override height. | |||||||||||||||||||||
Used to override the layouting logic of inherited views and set the specified height. | |||||||||||||||||||||||
OverrideWidth | ElementSize | Override width. | |||||||||||||||||||||
Used to override the layouting logic of inherited views and set the specified width. | |||||||||||||||||||||||
Pivot | Vector2 | View pivot position. | |||||||||||||||||||||
The normalized position that the view rect transform rotates around. | |||||||||||||||||||||||
Position | Vector3 | Position of the view. | |||||||||||||||||||||
The local position of the view in relation to the layout parent view transform. | |||||||||||||||||||||||
PropagateChildLayoutChanges | bool | Indicates if the view propagates child layout changes. | |||||||||||||||||||||
Boolean indicating if view propagates child layout changes. Generally set to true whenever a view adjusts its size to child layout changes. | |||||||||||||||||||||||
RaycastBlockMode | RaycastBlockMode | Indicates when raycast should be blocked. | |||||||||||||||||||||
Enum indicating when raycasts should be blocked by the view. Enum Values
| |||||||||||||||||||||||
Rotation | Quaternion | Rotation of the view. | |||||||||||||||||||||
The local rotation of the view in relation to the layout parent view transform. Stored as a Quaternion but specified in XUML as euler angles. | |||||||||||||||||||||||
Scale | Vector3 | Scale of the view. | |||||||||||||||||||||
The scale of the view in relation to the layout parent view transform. | |||||||||||||||||||||||
SelectedItem | object | Selected list item. | |||||||||||||||||||||
Set when the selected combo box item changes and points to the user-defined item data. | |||||||||||||||||||||||
SelectOnMouseUp | bool | Indicates if items are selected on mouse up. | |||||||||||||||||||||
Boolean indicating if items are selected on mouse up rather than mouse down (default). | |||||||||||||||||||||||
SortIndex | int | View sort index. | |||||||||||||||||||||
The sort index is used by views such as Group and List to sort its child views. | |||||||||||||||||||||||
State | string | View state. | |||||||||||||||||||||
View state name. Determines state values to be applied to the view. All views start out in the "Default" state and when the state changes the values associated with that state are applied to the view. | |||||||||||||||||||||||
Style | string | The style of the view. | |||||||||||||||||||||
Used as selector by the styles. Specifies the name of the style that is to be applied to the view and any children that explicitly inherits its style. The style is applied when the view is created (usually in the editor as the XUML is processed). | |||||||||||||||||||||||
Theme | string | The theme of the view. | |||||||||||||||||||||
Specifies the name of the theme that is applied to the view and its children. The theme determines which set of styles are to be considered when applying matching styles to the view. | |||||||||||||||||||||||
UnitSize | Vector3 | Unit size. | |||||||||||||||||||||
Specifies the user-defined unit size to be used by the view and its children. Used when element size is specified in user-defined units to convert it into pixels. | |||||||||||||||||||||||
UpdateBackground | bool | Indicates if background is updated. | |||||||||||||||||||||
If set to false the background image and color is not updated by the view. Is used when the background updates is done elsewhere. | |||||||||||||||||||||||
UpdateRectTransform | bool | Indicates if rect transform is updated. | |||||||||||||||||||||
If set to false the rect transform is not updated by the layout logic. It is used when layouting is done elsewhere. | |||||||||||||||||||||||
UseListMask | bool | Indicates if a list mask is to be used. | |||||||||||||||||||||
Boolean indicating if a list mask is to be used. | |||||||||||||||||||||||
Width | ElementSize | The width of the view. | |||||||||||||||||||||
Specifies the width of the view either in pixels or percents. |
Name | Action Data | Description | |
---|---|---|---|
Cancel | none | Cancel view action. | |
Triggered by the EventSystem when a cancel event occurs. | |||
Deselect | none | Deselect view action. | |
Triggered by the EventSystem when another view is selected. | |||
Drop | none | Drop view action. | |
Triggered by the EventSystem when the view accepts a drop. | |||
Move | none | Move view action. | |
Triggered by the EventSystem when a move event occurs. | |||
Click | none | Click view action. | |
Triggered by the EventSystem when the user clicks/touches on the view. | |||
BeginDrag | none | Drag view action. | |
Triggered by the EventSystem when the user presses mouse on and starts to drag over the view. | |||
EndDrag | none | End drag view action. | |
Triggered by the EventSystem when the user stops dragging mouse over the view. | |||
Drag | none | Drag view action. | |
Triggered by the EventSystem as the user drags the mouse over the view. | |||
InitializePotentialDrag | none | Initialize potential drag view action. | |
Triggered by the EventSystem as the user initiates a potential drag over the view. | |||
MouseDown | none | Mouse down view action. | |
Triggered by the EventSystem when the mouse/touch presses down over the view. | |||
MouseEnter | none | Mouse enter view action. | |
Triggered by the EventSystem when the mouse enters the view. | |||
MouseExit | none | Mouse exit view action. | |
Triggered by the EventSystem when the mouse exits the view. | |||
MouseUp | none | Mouse up view action. | |
Triggered by the EventSystem when the mouse/thouch releases over the view. | |||
Scroll | none | Scroll view action. | |
Triggered by the EventSystem when the user scrolls when the view is selected. | |||
Select | none | Select view action. | |
Triggered by the EventSystem when the view is selected. | |||
Submit | none | Submit view action. | |
Triggered by the EventSystem when the user submits while view is selected. | |||
UpdateSelected | none | Update selected view action. | |
Triggered by the EventSystem when the object associated with this EventTrigger is updated. | |||
Activated | none | Activated view action. | |
Triggered every time the view is activated. Also triggered once the view is intialized if it starts out activated. | |||
Deactivated | none | Deactivated view action. | |
Triggered every time the view is deactivated. Also triggered once the view is intialized if it starts out deactivated. |
Be notified when new themes, views, tutorials and updates are available