Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FromTexture2D(Texture2D)

Creates a background from a Texture2D.
Read time 1 minuteLast updated 5 days ago

Definition

public static Background FromTexture2D(Texture2D t)

Parameters

The texture to use as a background.

Returns

Type

Description

BackgroundA new background object.