UI.Image
| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The image to display. |
|
ImageGFX.Texture2D |
Output ➡️ |
|
The output of this shard will be its input. |
|
ImageGFX.Texture2D |
Scale |
No |
Scaling to apply to the source image. |
@f2(1 1) |
Float2Var(Float2) |
Size |
No |
The size to render the image at. |
none |
Float2Var(Float2) |
ScalingAware |
No |
When set to true, this image's pixels will be rendered 1:1 regardless of UI context point size. |
none |
BoolVar(Bool)None |
Display an image in the UI.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 | @wire(ui-wire {
UI.Window(
Title: "UI Image"
Position: @f2(0 0)
Anchor: Anchor::Center
Width: 700
Height: 400
Contents: {
Once({
asset/r0 | GFX.Texture = uiImage1 ;; replace with whatever image you have as references
})
uiImage1 | UI.Image
}
)
} Looped: true)
{ui-behavior: ui-wire}
|