Class CanvaseGroups
Inheritance
System.Object
CanvaseGroups
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GameKit.Dependencies.Utilities
Assembly: GameKit.Dependencies.dll
Syntax
public static class CanvaseGroups
Methods
SetActive(CanvasGroup, CanvasGroupBlockingType, Single)
Sets a CanvasGroup blocking type and alpha.
Declaration
public static void SetActive(this CanvasGroup group, CanvasGroupBlockingType blockingType, float alpha)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.CanvasGroup | group | |
CanvasGroupBlockingType | blockingType | How to handle interactions. |
System.Single | alpha | Alpha for CanvasGroup. |
SetActive(CanvasGroup, Boolean, Boolean)
Sets a group active state by changing alpha and interaction toggles.
Declaration
public static void SetActive(this CanvasGroup group, bool active, bool setAlpha)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.CanvasGroup | group | |
System.Boolean | active | |
System.Boolean | setAlpha |
SetActive(CanvasGroup, Boolean, Single)
Sets a group active state by changing alpha and interaction toggles with a custom alpha.
Declaration
public static void SetActive(this CanvasGroup group, bool active, float alpha)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.CanvasGroup | group | |
System.Boolean | active | |
System.Single | alpha |
SetActive(CanvasGroup, Single)
Sets a canvasGroup active with specified alpha.
Declaration
public static void SetActive(this CanvasGroup group, float alpha)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.CanvasGroup | group | |
System.Single | alpha |
SetBlockingType(CanvasGroup, CanvasGroupBlockingType)
Declaration
public static void SetBlockingType(this CanvasGroup group, CanvasGroupBlockingType blockingType)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.CanvasGroup | group | |
CanvasGroupBlockingType | blockingType |
SetInactive(CanvasGroup, Single)
Sets a canvasGroup inactive with specified alpha.
Declaration
public static void SetInactive(this CanvasGroup group, float alpha)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.CanvasGroup | group | |
System.Single | alpha |