Skip to content

Commit

Permalink
Merge pull request #169 from TheStripyCat/patch-1
Browse files Browse the repository at this point in the history
Update image.md
  • Loading branch information
mafiesto4 authored Dec 15, 2024
2 parents 5105ec4 + 5a1cb98 commit 2030320
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manual/ui/controls/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
![Image](media/image.png)

The **Image** control displays a non-interactive graphic defined by the assigned brush. It can draw a texture, render target, sprite, GUI material, solid color or a linear gradient.
To change the texture from code, assign `new TextureBrush(newTexture)` to the Brush parameter of Image.
For example: `portraitImage.Get<Image>().Brush = new TextureBrush(portraitTexture);`

0 comments on commit 2030320

Please sign in to comment.