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