Skip to content

Class TerminalScreenUGUI

Declaration
[AddComponentMenu("Terminal/Terminal Screen (UI)")]
[RequireComponent(typeof(RawImage))]
[Icon("Packages/com.darkeffekt.terminal/Editor/Icons/Assets/TerminalScreenUGUI.png")]
public sealed class TerminalScreenUGUI : TerminalScreenBase

Inheritance: System.Object -> UnityEngine.Object -> UnityEngine.Component -> UnityEngine.Behaviour -> UnityEngine.MonoBehaviour -> DarkEffekt.Terminal.Unity.TerminalScreenBase

Declaration
public FlatScaleMode ScaleMode { get; set; }
Declaration
protected override void LateUpdate()

DisplayTextureSize(Texture, TerminalScreenType, int, out bool)

Section titled “DisplayTextureSize(Texture, TerminalScreenType, int, out bool)”

The size of the display texture this presenter shows, and whether it carries mipmaps. The default suits a surface seen at any distance and angle: see DarkEffekt.Terminal.Unity.TerminalScreenBase.SupersampledSize(UnityEngine.Texture%2cDarkEffekt.Terminal.Unity.TerminalScreenType%2cSystem.Int32%2cSystem.Boolean%40).

Declaration
protected override Vector2Int DisplayTextureSize(Texture grid, TerminalScreenType type, int cellHeight, out bool mipmaps)

UnityEngine.Vector2Int

Type Name
UnityEngine.Texture grid
DarkEffekt.Terminal.Unity.TerminalScreenType type
System.Int32 cellHeight
System.Boolean mipmaps

Shows the styled display texture on the visual this presenter drives.

Declaration
protected override void PresentTexture(Texture texture)
Type Name
UnityEngine.Texture texture
Declaration
public void OnPointerDown(PointerEventData e)
Type Name
UnityEngine.EventSystems.PointerEventData e
Declaration
public void OnPointerUp(PointerEventData e)
Type Name
UnityEngine.EventSystems.PointerEventData e
Declaration
public void OnPointerMove(PointerEventData e)
Type Name
UnityEngine.EventSystems.PointerEventData e
Declaration
public void OnPointerExit(PointerEventData e)
Type Name
UnityEngine.EventSystems.PointerEventData e
Declaration
public void OnScroll(PointerEventData e)
Type Name
UnityEngine.EventSystems.PointerEventData e

Sizes the RectTransform to the texture’s native pixels, for a pixel-perfect flat view.

Declaration
public void SnapToNativeSize()