Class CanvasGroupExtensions
Inheritance
object
CanvasGroupExtensions
Namespace: TetraCreations.Core
Assembly: cs.temp.dll.dll
Syntax
public static class CanvasGroupExtensions
Methods
Hide(CanvasGroup)
Hide a canvas group and prevent raycast collision
Declaration
public static void Hide(this CanvasGroup canvasGroup)
Parameters
Type | Name | Description |
---|---|---|
CanvasGroup | canvasGroup |
SetVisibility(CanvasGroup, bool)
Show or Hide the canvas group using a boolean parameter
Declaration
public static void SetVisibility(this CanvasGroup canvasGroup, bool visible)
Parameters
Type | Name | Description |
---|---|---|
CanvasGroup | canvasGroup | |
bool | visible | If it should be visible or not |
Show(CanvasGroup)
Show a canvas group and allow raycast collision
Declaration
public static void Show(this CanvasGroup canvasGroup)
Parameters
Type | Name | Description |
---|---|---|
CanvasGroup | canvasGroup |
ToggleVisibility(CanvasGroup)
Hide the canvas group if it's visible, otherwise show it.
Declaration
public static void ToggleVisibility(this CanvasGroup canvasGroup)
Parameters
Type | Name | Description |
---|---|---|
CanvasGroup | canvasGroup |