SCanvasGroup
客户端组件
成员 5
| 属性 | Alpha | Set the alpha of the group. |
| 属性 | BlocksRaycasts | Does this group block raycasting (allow collision)? |
| 属性 | IgnoreParentGroups | Should the group ignore parent groups? |
| 属性 | Interactable | Is the group interactable (are the elements beneath the group enabled)? |
| 属性 | GameObject | Returns 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只读
Returns a reference to the GameObject of this component.
示例
Lua
theGameObject = Space.Host.ExecutingObject.CanvasGroup.GameObject



