Scripting API

Background

struct in UnityEngine.UIElements · UnityEngine.UIElementsModule

14 of 16 of Unity's membersUnity's documentation
In Tassix

A background image: a texture, sprite or render texture.

Constructors 1

Properties 3

RenderTexture? renderTexture { get; set; }
Sprite? sprite { get; set; }
Texture2D? texture { get; set; }

Methods 8

bool Equals(Background other)
bool Equals(object? obj)
static Background FromRenderTexture(RenderTexture rt)
static Background FromSprite(Sprite s)
static Background FromTexture2D(Texture2D t)
int GetHashCode()
Object? GetSelectedImage()
bool IsEmpty()
string ToString()

Operators 3

static implicit operator Background(Texture2D v)
static bool operator !=(Background a, Background b)
static bool operator ==(Background a, Background b)

Not in Tassix yet 2

FromVectorImage vectorImage