Automated: update component fields |
Automated: update component fields |
||
Line 17: | Line 17: | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|HighPriorityIntegration|Bool| | |HighPriorityIntegration|Bool| | ||
|Texture|ITexture2D|The sprite to provide. | |Texture|{{RootFieldType|AssetRef`1|[[Type:ITexture2D|ITexture2D]]}}|TypeAdv1=true|The sprite to provide. | ||
|Rect|Rect|The rectangle within the sprite to render. Note that the second x and y are actually the width and height of the Rect. The values are proportions of the width and height of the image in the Texture property. | |Rect|Rect|The rectangle within the sprite to render. Note that the second x and y are actually the width and height of the Rect. The values are proportions of the width and height of the image in the Texture property. | ||
|Borders|Float4| | |Borders|Float4| |
Revision as of 09:14, 1 March 2024
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Component image
Intoduction
A SpriteProvider component provides a Sprite for an Image. This can be used to display graphics and produce backgrounds.
Usage
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. |
HighPriorityIntegration
|
Bool | |
Texture
|
ITexture2D | The sprite to provide. |
Rect
|
Rect | The rectangle within the sprite to render. Note that the second x and y are actually the width and height of the Rect. The values are proportions of the width and height of the image in the Texture property. |
Borders
|
Float4 | |
Scale
|
Float | |
FixedSize
|
Float |
Behavior
Examples
ProbablePrime's video on Sprites