Class UIVisual
Draws a texture or a primitive fallback inside a UITransform.
public sealed class UIVisual : Component, IDisposable
- Inheritance
-
UIVisual
- Implements
- Inherited Members
Constructors
UIVisual(GameObject, SpriteBatch, PrimitiveBatch)
Draws a texture or a primitive fallback inside a UITransform.
public UIVisual(GameObject gameObject, SpriteBatch spriteBatch, PrimitiveBatch primitives)
Parameters
gameObjectGameObjectspriteBatchSpriteBatchprimitivesPrimitiveBatch
Properties
Color
public Color Color { get; set; }
Property Value
Depth
public float Depth { get; set; }
Property Value
Primitive
public UIPrimitive Primitive { get; set; }
Property Value
Sprite
public Sprite? Sprite { get; set; }
Property Value
Thickness
public float Thickness { get; set; }
Property Value
Methods
Render()
public override void Render()
Start()
public override void Start()