Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

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.