Breakroom is now Sinewave Campus. Book a meeting

SCanvasGroup

العميلالمكونات
في هذا الصنفAlpha
  1. الخصائص
  2. Alpha
  3. BlocksRaycasts
  4. IgnoreParentGroups
  5. Interactable
  6. GameObject
الأعضاء 5
خاصيةAlphaSet the alpha of the group.
خاصيةBlocksRaycastsDoes this group block raycasting (allow collision)?
خاصيةIgnoreParentGroupsShould the group ignore parent groups?
خاصيةInteractableIs the group interactable (are the elements beneath the group enabled)?
خاصيةGameObjectReturns a reference to the GameObject of this component.

الخصائص​

Alpha​

float Alpha {get; set; }

Set the alpha of the group.

مثال

Lua
Space.Host.CanvasGroup.Alpha = 1.0

BlocksRaycasts​

bool BlocksRaycasts {get; set; }

Does this group block raycasting (allow collision)?

مثال

Lua
Space.Host.CanvasGroup.BlocksRaycasts = true

IgnoreParentGroups​

bool IgnoreParentGroups {get; set; }

Should the group ignore parent groups?

مثال

Lua
Space.Host.CanvasGroup.IgnoreParentGroups = true

Interactable​

bool Interactable {get; set; }

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

مثال

Lua
Space.Host.CanvasGroup.Interactable = true

GameObjectللقراءة فقط​

SGameObject GameObject {get; }

Returns a reference to the GameObject of this component.

مثال

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