MeshyHotspotLayout
Inherits Resource.
Normalized hotspot atlas rectangles reusable across materials and texture resolutions.
Properties
Section titled “Properties”patches
Section titled “patches”patches: MeshyHotspotPatch[] = []setter: set_patches; getter: get_patches.
Atlas rectangles. Overlapping rectangles are allowed for alternative fits.
preview_texture
Section titled “preview_texture”preview_texture: Texture2D = nullsetter: set_preview_texture; getter: get_preview_texture.
Optional editor image. Each material supplies its own rendered texture.
Methods
Section titled “Methods”add_patch
Section titled “add_patch”add_patch(rect_uv: Rect2) -> MeshyHotspotPatchallocate_patch_id
Section titled “allocate_patch_id”allocate_patch_id() -> intqualifiers: const.
remove_patch
Section titled “remove_patch”remove_patch(id: int) -> boolserialize_for_core
Section titled “serialize_for_core”serialize_for_core() -> Dictionaryqualifiers: const.
update_patch_rect
Section titled “update_patch_rect”update_patch_rect(id: int, rect_uv: Rect2) -> boolvalidate_patches
Section titled “validate_patches”validate_patches() -> PackedStringArrayqualifiers: const.