Class Image
Implements
Inherited Members
Namespace: UnityEngine.Experimental.UIElements
Assembly: UnityEngine.dll
Syntax
public class Image : VisualElement, IEventHandler, ITransform, IUIElementDataWatch, IEnumerable<VisualElement>, IEnumerable, IVisualElementScheduler, IStyle
Constructors
| Improve this Doc View SourceImage()
Declaration
public Image()
Properties
| Improve this Doc View Sourceimage
Declaration
public StyleValue<Texture> image { get; set; }
Property Value
| Type | Description |
|---|---|
| StyleValue<Texture> |
scaleMode
Declaration
public StyleValue<ScaleMode> scaleMode { get; set; }
Property Value
| Type | Description |
|---|---|
| StyleValue<ScaleMode> |
sourceRect
Declaration
public Rect sourceRect { get; set; }
Property Value
| Type | Description |
|---|---|
| Rect |
uv
Declaration
public Rect uv { get; set; }
Property Value
| Type | Description |
|---|---|
| Rect |
Methods
| Improve this Doc View SourceDoMeasure(Single, VisualElement.MeasureMode, Single, VisualElement.MeasureMode)
Declaration
protected override Vector2 DoMeasure(float width, VisualElement.MeasureMode widthMode, float height, VisualElement.MeasureMode heightMode)
Parameters
| Type | Name | Description |
|---|---|---|
| Single | width | |
| VisualElement.MeasureMode | widthMode | |
| Single | height | |
| VisualElement.MeasureMode | heightMode |
Returns
| Type | Description |
|---|---|
| Vector2 |
Overrides
| Improve this Doc View SourceDoRepaint(IStylePainter)
Declaration
protected override void DoRepaint(IStylePainter painter)
Parameters
| Type | Name | Description |
|---|---|---|
| IStylePainter | painter |
Overrides
| Improve this Doc View SourceOnStyleResolved(ICustomStyle)
Declaration
protected override void OnStyleResolved(ICustomStyle elementStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| ICustomStyle | elementStyle |