Images
The Image element is a foundational image VisualElement. It inherits from UnityEngine.UIElements.Image.
Props
Texture2D texture:Texture2Dto show.Sprite sprite:Spriteto show. Less precedence thantexture.VectorImage vector:VectorImageto show. Less precedence thansprite.RenderTexture renderTexture:RenderTextureto show. Less precedence thanvector.bool useBackground: Whether the image should use USS background properties or not. 9-slice Sprites will automatically use the background properties.RishString textureAddress: Address to load aTexture2D(viaAssetsLoader). Can be set in USS Style Sheet with--props-texture.RishString spriteAddress: Address to load aSprite(viaAssetsLoader). Can be set in USS Style Sheet with--props-sprite. Less precedence thantextureAddress.RishString vectorAddress: Address to load aVectorImage(viaAssetsLoader). Can be set in USS Style Sheet with--props-vector. Less precedence thanspriteAddress.RishString renderTextureAddress: Address to load aRenderTexture(viaAssetsLoader). Can be set in USS Style Sheet with--props-render-texture. Less precedence thanvectorAddress.ScaleMode scaleMode:ScaleModeto use when rendering. Can be set in USS Style Sheet with--props-scale-mode.Color tintColor:Colorto multiply with. Can be set in USS Style Sheet with--props-tint-color.ImageSize width: Width. Can be set in USS Style Sheet with--props-image-width. If set, it has higher precedence than similar USS properties (likewidthormin-width).ImageSize height: Height. Can be set in USS Style Sheet with--props-image-height. If set, it has higher precedence than similar USS properties (likeheightormin-height).