Table of Contents

Class UIVisual

Namespace
Axolotl2D.UI
Assembly
Axolotl2D.dll

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

gameObject GameObject
spriteBatch SpriteBatch
primitives PrimitiveBatch

Properties

Color

public Color Color { get; set; }

Property Value

Color

Depth

public float Depth { get; set; }

Property Value

float

Primitive

public UIPrimitive Primitive { get; set; }

Property Value

UIPrimitive

Sprite

public Sprite? Sprite { get; set; }

Property Value

Sprite

Thickness

public float Thickness { get; set; }

Property Value

float

Methods

Render()

public override void Render()

Start()

public override void Start()