Skip to content

MouseIconsSet

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

class MouseIconsSet

Represents a mouse icons set class.

Properties

public Sprite DeviceImage

The mouse 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(MouseGlyph glyph)

Gets the glyph.

Parameters

Name Description
glyph The glyph.

public bool TryGetGlyph(Sprite sprite, out MouseGlyph glyph)

public Vector2 GetAnchor(MouseGlyph glyph)

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