CanvasTween Class |
Namespace: ImmerseSDK
[HelpURLAttribute("https://immerse.readme.io/")] [UnityEngine.RequireComponent(typeof(UnityEngine.CanvasGroup))] public sealed class CanvasTween : UnityEngine.MonoBehaviour
The CanvasTween type exposes the following members.
Name | Description | |
---|---|---|
CanvasTween | Initializes a new instance of the CanvasTween class |
Name | Description | |
---|---|---|
GetAlpha |
Get the current alpha value of the attached CanvasGroup
| |
Hide |
Hide canvas, use TransitionTime setting
| |
Hide(Single) |
Hide canvas, override TransitionTime setting
| |
SetAlpha |
Stop any current transition and set to a CanvasGroup alpha to a specific value
| |
Show |
Show canvas, use TransitionTime setting
| |
Show(Single) |
Show canvas, override TransitionTime setting
| |
StopTransition |
Stop any current transition
|
Name | Description | |
---|---|---|
OnVisibilityChanged |
Fired when the canvas becomes visible in invisible
|
Name | Description | |
---|---|---|
ToggleGameObject |
Should the GameObject be disabled when reaching 0 alpha (an re-enabled when showing)
| |
TransitionTime |
The amount of time it takes to fade in/out
|
Name | Description | |
---|---|---|
GetCopyOf |
Copies all properties of a component from source to target. Uses reflection to set properties.
(Defined by ComponentExtensions.) | |
WaitForT |
Waits for a singleton on a coroutine
(Defined by SingletonManager.) |