Skip to content

BaseGameUI

interludesoftware.tick

Interlude.Tick

BaseGameUI Class

public abstract class BaseGameUI : Interlude.Tick.TickRecorder

Inheritance UnityEngine.MonoBehaviourTickRecorder → BaseGameUI

Properties

BaseGameUI.ResourceProviders Property

The composite that backs this UI's resource lookups. Push / Remove providers at runtime to layer additional fonts, icons, or images on top of the bundled default and the inspector-supplied list.

public Interlude.Tick.CompositeResourceProvider ResourceProviders { get; }

Property Value

CompositeResourceProvider

Methods

BaseGameUI.CreateConfiguration() Method

Builds the default Configuration with common aspect-ratio layouts. Override to customise.

protected virtual Interlude.Tick.Configuration CreateConfiguration();

Returns

Configuration

BaseGameUI.CreateUI() Method

Constructs the UI instance and wires up the resource-provider chain. Override to inject additional providers or alter the configuration.

protected virtual Interlude.Tick.UI CreateUI();

Returns

UI

BaseGameUI.DoUI(UI) Method

Called every LateUpdate. Implement the full frame: BeginFrame, all UI calls, EndFrame.

protected abstract void DoUI(Interlude.Tick.UI ui);

Parameters

ui UI

BaseGameUI.GetUI() Method

Returns the underlying UI instance for advanced use-cases.

protected Interlude.Tick.UI GetUI();

Returns

UI

BaseGameUI.OnDestroy() Method

Releases the UI's native lists when the MonoBehaviour is destroyed.

protected virtual void OnDestroy();

BaseGameUI.Start() Method

Initialises the UI instance. Override to run additional setup after calling base.

protected virtual void Start();