Skip to content

MeshyHotspotLayout

Inherits Resource.

Class index

Normalized hotspot atlas rectangles reusable across materials and texture resolutions.

patches: MeshyHotspotPatch[] = []

setter: set_patches; getter: get_patches.

Atlas rectangles. Overlapping rectangles are allowed for alternative fits.

preview_texture: Texture2D = null

setter: set_preview_texture; getter: get_preview_texture.

Optional editor image. Each material supplies its own rendered texture.

add_patch(rect_uv: Rect2) -> MeshyHotspotPatch
allocate_patch_id() -> int

qualifiers: const.

remove_patch(id: int) -> bool
serialize_for_core() -> Dictionary

qualifiers: const.

update_patch_rect(id: int, rect_uv: Rect2) -> bool
validate_patches() -> PackedStringArray

qualifiers: const.