Skip to content

MeshyHotspotPatch

Inherits Resource.

Class index

One normalized rectangle in a reusable hotspot atlas layout.

allow_mirror_u: bool = false

setter: set_allow_mirror_u; getter: get_allow_mirror_u.

Allows horizontal mirroring when choosing a deterministic variant.

allow_mirror_v: bool = false

setter: set_allow_mirror_v; getter: get_allow_mirror_v.

Allows vertical mirroring when choosing a deterministic variant.

allow_rotation: bool = true

setter: set_allow_rotation; getter: get_allow_rotation.

Allows fitting the face to the rectangle after a quarter turn.

id: int = -1

setter: set_id; getter: get_id.

Stable ID used for deterministic variants. Layout.add_patch assigns it.

name: String = ""

setter: set_patch_name; getter: get_patch_name.

Name shown in the hotspot editor.

pixel_inset: float = 0.0

setter: set_pixel_inset; getter: get_pixel_inset.

Moves UVs inward from each edge by this many texture pixels.

rect_uv: Rect2 = Rect2(0, 0, 0.25, 0.25)

setter: set_rect_uv; getter: get_rect_uv.

Atlas rectangle in normalized coordinates, with the origin at top left.

repeat_u: bool = false

setter: set_repeat_u; getter: get_repeat_u.

Repeats horizontally at the face texel density across the full atlas width.

repeat_v: bool = false

setter: set_repeat_v; getter: get_repeat_v.

Repeats vertically at the face texel density across the full atlas height.

serialize_for_core() -> Dictionary

qualifiers: const.