Adventure Creator  1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
AC.BackgroundImageUI Class Reference
Inheritance diagram for AC.BackgroundImageUI:

Public Member Functions

void SetTexture (Texture texture)
 Sets the RawImage component's texture to a given texture More...
 
void ClearTexture (Texture texture)
 Clears the RawImage component's texture More...
 
void SetShakeIntensity (float intensity)
 Creates a shake effect by scaling and repositioning the background image More...
 

Public Attributes

Canvas canvas
 
RawImage rawImage
 
Texture emptyTexture
 

Protected Member Functions

void Start ()
 
void AssignCamera ()
 
void CorrectLayer ()
 

Protected Attributes

RectTransform rawImageRectTransform
 

Properties

static BackgroundImageUI Instance [get]
 

Member Function Documentation

◆ ClearTexture()

void AC.BackgroundImageUI.ClearTexture ( Texture  texture)

Clears the RawImage component's texture

Parameters
textureIf not null, the texture will only be cleared if this texture is currently assigned.

◆ SetShakeIntensity()

void AC.BackgroundImageUI.SetShakeIntensity ( float  intensity)

Creates a shake effect by scaling and repositioning the background image

Parameters
intensityThe intensity of the effect

◆ SetTexture()

void AC.BackgroundImageUI.SetTexture ( Texture  texture)

Sets the RawImage component's texture to a given texture

Parameters
textureThe texture to assign