Skip to content

KeyboardIconsSet

Source: Assets/UpscaleSDK/Core/Input/Runtime/Glyphs/KeyboardIconsSet.cs

class KeyboardIconsSet

Represents a keyboard icons set class.

Properties

public Sprite DeviceImage

The keyboard silhouette drawn in the center of the layout view. Anchors on each glyph item are expressed in this image's normalized space (0..1, origin bottom-left) and are authored in the inspector.

Methods

public Sprite GetGlyph(KeyboardGlyph glyph)

Gets the glyph.

Parameters

Name Description
glyph The glyph.

public Vector2 GetAnchor(KeyboardGlyph glyph)

Returns the key's anchor in device image normalized space (0..1, origin bottom-left). Anchors are always considered placed; unauthored glyphs return (0, 0).

public bool TryGetGlyph(Sprite sprite, out KeyboardGlyph glyph)