![]() |
Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
|
Public Types | |
| enum | BackgroundImageSource { Texture , VideoClip } |
Public Member Functions | |
| void | SetImage (Texture2D _texture) |
| Sets the background image to a supplied texture. | |
| void | TurnOn () |
| void | TurnOff () |
| void | Shake (float _shakeIntensity, float _duration, AnimationCurve _shakeCurve=null) |
| Shakes the background image (within the GUITexture) for an earthquake-like effect. | |
| void | CancelVideoPlayback () |
Public Attributes | |
| BackgroundImageSource | backgroundImageSource = BackgroundImageSource.Texture |
| VideoClip | backgroundVideo |
| Texture | backgroundTexture |
Protected Attributes | |
| VideoPlayer | videoPlayer |
| float | shakeDuration |
| float | startTime |
| float | startShakeIntensity |
| float | shakeIntensity |
| Rect | originalPixelInset |
| AnimationCurve | shakeCurve |
Controls a GUITexture for use in background images in 2.5D games.
| void AC.BackgroundImage.SetImage | ( | Texture2D | _texture | ) |
Sets the background image to a supplied texture.
| _texture | The texture to set the background image to |
| void AC.BackgroundImage.Shake | ( | float | _shakeIntensity, |
| float | _duration, | ||
| AnimationCurve | _shakeCurve = null ) |
Shakes the background image (within the GUITexture) for an earthquake-like effect.
| _shakeIntensity | How intense the shake effect should be |
| _duration | How long the shake effect should last, in seconds |
| void AC.BackgroundImage.TurnOff | ( | ) |
Hides the background image from view.
| void AC.BackgroundImage.TurnOn | ( | ) |
Displays the background image full-screen.
| BackgroundImageSource AC.BackgroundImage.backgroundImageSource = BackgroundImageSource.Texture |
What type of asset is used as a background (Texture, VideoClip)
| Texture AC.BackgroundImage.backgroundTexture |
The Texture to use as a background, if static
| VideoClip AC.BackgroundImage.backgroundVideo |
The VideoClip to use as a background, if animated