Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
Loading...
Searching...
No Matches
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.
void ClearTexture (Texture texture)
 Clears the RawImage component's texture.
void SetShakeIntensity (float intensity)
 Creates a shake effect by scaling and repositioning the background image.

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