Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FromGradient(BackgroundGradient)

Creates a background from a BackgroundGradient.
Read time 1 minuteLast updated 11 days ago

Definition

public static Background FromGradient(BackgroundGradient g)

Parameters

The gradient to use as a background. An empty gradient yields an empty background.

Returns

Type

Description

BackgroundA new background object.