This version of Unity is unsupported.

Background.FromTexture2D

Declaration

public static UIElements.Background FromTexture2D(Texture2D t);

Parameters

t The texture to use as a background.

Returns

Background A new background object.

Description

Creates a background from a Texture2D.