Background Component props .i.e to define a background color or image

Hierarchy

  • UiBackgroundProps

Properties

avatarTexture?: UiAvatarTexture

AvatarTexture for the background

color?: PBColor4

Background color.

Default Value

{ r: 1, g: 1, b: 1, a: 1 }

texture?: UiTexture

Texture for the background

textureMode?: TextureMode
textureSlices?: BorderRect

Texture slices represents the top | right | bottom | left sizes of the slices for the borders. Values are percentages of the texture.

uvs?: number[]

when STRETCH is selected, the uvs are configurable