Struct Background
Syntax
public struct Background : IEquatable<Background>
Constructors
Background(Texture2D)
Declaration
public Background(Texture2D t)
Parameters
Type |
Name |
Description |
Texture2D |
t |
|
Properties
renderTexture
The to display as a background.
Declaration
public RenderTexture renderTexture { get; set; }
Property Value
Type |
Description |
RenderTexture |
|
sprite
The sprite to display as a background.
Declaration
public Sprite sprite { get; set; }
Property Value
texture
The texture to display as a background.
Declaration
public Texture2D texture { get; set; }
Property Value
Type |
Description |
Texture2D |
|
vectorImage
Declaration
public VectorImage vectorImage { get; set; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Equals(Background)
Declaration
public bool Equals(Background other)
Parameters
Returns
FromRenderTexture(RenderTexture)
Creates a background from a .
Declaration
public static Background FromRenderTexture(RenderTexture rt)
Parameters
Type |
Name |
Description |
RenderTexture |
rt |
The render texture to use as a background.
|
Returns
Type |
Description |
Background |
A new background object.
|
FromSprite(Sprite)
Creates a background from a .
Declaration
public static Background FromSprite(Sprite s)
Parameters
Type |
Name |
Description |
Sprite |
s |
The sprite to use as a background.
|
Returns
Type |
Description |
Background |
A new background object.
|
FromTexture2D(Texture2D)
Creates a background from a .
Declaration
public static Background FromTexture2D(Texture2D t)
Parameters
Type |
Name |
Description |
Texture2D |
t |
The texture to use as a background.
|
Returns
Type |
Description |
Background |
A new background object.
|
FromVectorImage(VectorImage)
Declaration
public static Background FromVectorImage(VectorImage vi)
Parameters
Type |
Name |
Description |
VectorImage |
vi |
The vector image to use as a background.
|
Returns
Type |
Description |
Background |
A new background object.
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns
Operators
Equality(Background, Background)
Declaration
public static bool operator ==(Background lhs, Background rhs)
Parameters
Returns
Inequality(Background, Background)
Declaration
public static bool operator !=(Background lhs, Background rhs)
Parameters
Returns