![]() |
Adventure Creator 1.84.3
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2024
|
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] |
| void AC.BackgroundImageUI.ClearTexture | ( | Texture | texture | ) |
Clears the RawImage component's texture.
| texture | If not null, the texture will only be cleared if this texture is currently assigned. |
| void AC.BackgroundImageUI.SetShakeIntensity | ( | float | intensity | ) |
Creates a shake effect by scaling and repositioning the background image.
| intensity | The intensity of the effect |
| void AC.BackgroundImageUI.SetTexture | ( | Texture | texture | ) |
Sets the RawImage component's texture to a given texture.
| texture | The texture to assign |