UIImage

class in Infernux.ui

Inherits from: InxUIScreenComponent

Description

Screen-space image element rendered from a texture asset.

Inherits x, y, width, height, opacity, corner_radius, rotation, mirror_x, mirror_y from InxUIScreenComponent.

Attributes: texture_path: Path to texture asset (drag from Project panel). color: Tint color as [R, G, B, A] (0–1 each).

Example::

img = game_object.add_component(UIImage)
img.texture_path = "Assets/Textures/logo.png"
img.color = [1.0, 1.0, 1.0, 0.8]

description

Properties

Name Type Description
texture_path str
color list

properties

Example

example

# TODO: Add example for UIImage

See Also

see_also