Adventure Creator  1.66.8
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.BackgroundImage Class Reference
Inheritance diagram for AC.BackgroundImage:

Public Types

enum  BackgroundMethod25D { UnityUI, GUITexture }
 

Public Member Functions

void SetImage (Texture2D _texture)
 Sets the background image to a supplied texture More...
 
void TurnOn ()
 
void TurnOff ()
 
void Shake (float _shakeIntensity, float _duration)
 Shakes the background image (within the GUITexture) for an earthquake-like effect. More...
 

Public Attributes

BackgroundMethod25D backgroundMethod25D = BackgroundMethod25D.GUITexture
 
Texture backgroundTexture
 

Properties

GUITexture GUITexture [get]
 

Detailed Description

Controls a GUITexture for use in background images in 2.5D games.

Member Function Documentation

◆ SetImage()

void AC.BackgroundImage.SetImage ( Texture2D  _texture)

Sets the background image to a supplied texture

Parameters
_textureThe texture to set the background image to

◆ Shake()

void AC.BackgroundImage.Shake ( float  _shakeIntensity,
float  _duration 
)

Shakes the background image (within the GUITexture) for an earthquake-like effect.

Parameters
_shakeIntensityHow intense the shake effect should be
_durationHow long the shake effect should last, in seconds

◆ TurnOff()

void AC.BackgroundImage.TurnOff ( )

Hides the background image (within the GUITexture) from view.

◆ TurnOn()

void AC.BackgroundImage.TurnOn ( )

Displays the background image (within the GUITexture) fullscreen.

Member Data Documentation

◆ backgroundMethod25D

BackgroundMethod25D AC.BackgroundImage.backgroundMethod25D = BackgroundMethod25D.GUITexture

How 2.5D backgrounds are renderered (GUITexture, UnityUI)