Class UIComponent
[DataContract("UIComponent")]
[Display("UI", null, Expand = ExpandRule.Once)]
[DefaultEntityComponentRenderer(typeof(UIRenderProcessor))]
[ComponentOrder(9800)]
[ComponentCategory("UI")]
public sealed class UIComponent : ActivableEntityComponent, IIdentifiable
- Inheritance
-
UIComponent
- Implements
- Inherited Members
Constructors
UIComponent()
public UIComponent()
Fields
DefaultDepth
public static readonly float DefaultDepth
Field Value
DefaultHeight
public static readonly float DefaultHeight
Field Value
DefaultWidth
public static readonly float DefaultWidth
Field Value
FixedSizeVerticalUnit
A fixed size UI component with height of 1 will be this much of the vertical resolution on screen
public const float FixedSizeVerticalUnit = 1
Field Value
Properties
IsBillboard
Gets or sets the value indicating whether the UI should be displayed as billboard.
[DataMember(50)]
[Display("Billboard", null)]
public bool IsBillboard { get; set; }
Property Value
IsFixedSize
Gets or sets the value indicating whether the UI should be always a fixed size on the screen.
[DataMember(70)]
[Display("Fixed Size", null)]
public bool IsFixedSize { get; set; }
Property Value
IsFullScreen
Gets or sets the value indicating whether the UI should be full screen.
[DataMember(20)]
[Display("Full Screen", null)]
public bool IsFullScreen { get; set; }
Property Value
Page
Gets or sets the UI page.
[DataMember(10)]
[Display("Page", null)]
public UIPage Page { get; set; }
Property Value
RenderGroup
The render group for this component.
[DataMember(80)]
[Display("Render group", null)]
public RenderGroup RenderGroup { get; set; }
Property Value
Resolution
Gets or sets the virtual resolution of the UI in virtual pixels.
[DataMember(30)]
[Display("Resolution", null)]
public Vector3 Resolution { get; set; }
Property Value
ResolutionStretch
Gets or sets the camera.
[DataMember(40)]
[Display("Resolution Stretch", null)]
public ResolutionStretch ResolutionStretch { get; set; }
Property Value
- ResolutionStretch
The camera.
Sampler
Specifies the sampling method to be used for this component
[DataMember(15)]
[Display("Sampler", null)]
public UIElementSampler Sampler { get; set; }
Property Value
Size
Gets or sets the actual size of the UI component in world units. This value is ignored in fullscreen mode.
[DataMember(35)]
[Display("Size", null)]
public Vector3 Size { get; set; }
Property Value
SnapText
Gets or sets the value indicating of the UI texts should be snapped to closest pixel.
[DataMember(60)]
[Display("Snap Text", null)]
public bool SnapText { get; set; }