Breakroom is now Sinewave Campus. Book a meeting

SCanvasGroup

ClientComposants
Dans cette classeAlpha
  1. Propriétés
  2. Alpha
  3. BlocksRaycasts
  4. IgnoreParentGroups
  5. Interactable
  6. GameObject
Membres 5
PropriétéAlphaSet the alpha of the group.
PropriétéBlocksRaycastsDoes this group block raycasting (allow collision)?
PropriétéIgnoreParentGroupsShould the group ignore parent groups?
PropriétéInteractableIs the group interactable (are the elements beneath the group enabled)?
PropriétéGameObjectReturns a reference to the GameObject of this component.

Propriétés​

Alpha​

float Alpha {get; set; }

Set the alpha of the group.

Exemple

Lua
Space.Host.CanvasGroup.Alpha = 1.0

BlocksRaycasts​

bool BlocksRaycasts {get; set; }

Does this group block raycasting (allow collision)?

Exemple

Lua
Space.Host.CanvasGroup.BlocksRaycasts = true

IgnoreParentGroups​

bool IgnoreParentGroups {get; set; }

Should the group ignore parent groups?

Exemple

Lua
Space.Host.CanvasGroup.IgnoreParentGroups = true

Interactable​

bool Interactable {get; set; }

Is the group interactable (are the elements beneath the group enabled)?

Exemple

Lua
Space.Host.CanvasGroup.Interactable = true

GameObjectLecture seule​

SGameObject GameObject {get; }

Returns a reference to the GameObject of this component.

Exemple

Lua
theGameObject = Space.Host.ExecutingObject.CanvasGroup.GameObject