- Mastering UI Development with Unity
- Ashley Godbold
- 207字
- 2021-08-27 18:43:14
Canvas Group component
You can add a Canvas Group component to any UI object. It allows you to adjust specific properties of the UI object it is attached to and all of its children at once, rather than having to adjust these properties individually. You can add a Canvas Group component to any UI object by selecting Add Component | Layout | Canvas Group (you can also just search for Canvas Group) from the UI object's Inspector.

You can adjust the following properties using a Canvas Group component:
- Alpha: This is the transparency of the UI objects within the Canvas Group. The number is between 0 and 1 and represents a percentage of opaqueness; 0 is completely transparent, while 1 is completely opaque.
- Interactable: This setting states whether or not the objects within the group can accept input.
- Blocks Raycast: This setting determines if the objects within the group will block the raycast from hitting things behind it.
- Ignore Parent Groups: If this Canvas Group is on an object that is a child of another object with a Canvas Group component, this property determines whether this Canvas Group will override the one above it or not. If it is selected, it will override the parent group.
推薦閱讀
- Cocos2D-X權威指南(第2版)
- Hands-On Data Structures and Algorithms with JavaScript
- HBase從入門到實戰
- Python Game Programming By Example
- 零基礎學Java(第4版)
- MongoDB權威指南(第3版)
- UVM實戰
- Frank Kane's Taming Big Data with Apache Spark and Python
- INSTANT Adobe Edge Inspect Starter
- Instant PHP Web Scraping
- Getting Started with Nano Server
- Arduino計算機視覺編程
- Distributed Computing in Java 9
- ASP.NET 4.0 Web程序設計
- JavaScript悟道