Grid 是用于绘制均匀间隔点/线布局的基类。
        Grid 组件存储网格布局的维度数据,并提供 Helper 函数来检索有关网格的信息,例如网格中项目的单元格位置与本地空间位置之间的转换。
Grid 组件的布局位于 XY 平面中,网格原点始终为 (0, 0),网格的 X 和 Y 坐标仅使用正值。
实现接口 GridLayout。
      
| cellGap | Grid 中各个单元格之间的间隙大小。 | 
| cellLayout | Grid 中单元格的布局。 | 
| cellSize | Grid 中每个单元格的大小。 | 
| cellSwizzle | Grid 的单元格重排。 | 
| GetCellCenterLocal | 获取本地空间中网格单元格的逻辑中心坐标。 | 
| GetCellCenterWorld | 获取世界空间中网格单元格的逻辑中心坐标。 | 
| InverseSwizzle | 针对给定的重排顺序,对给定位置进行反向重排。 | 
| Swizzle | 使用给定的重排顺序对给定位置进行重排。 | 
| enabled | 启用的 Behaviour 可更新,禁用的 Behaviour 不可更新。 | 
| isActiveAndEnabled | Reports whether a GameObject and its associated Behaviour is active and enabled. | 
| gameObject | 此组件附加到的游戏对象。始终将组件附加到游戏对象。 | 
| tag | 此游戏对象的标签。 | 
| transform | 附加到此 GameObject 的 Transform。 | 
| cellGap | 布局中各个单元格之间的间隙大小。 | 
| cellLayout | 单元格的布局。 | 
| cellSize | 布局中每个单元格的大小。 | 
| cellSwizzle | 布局的单元格重排。 | 
| hideFlags | 该对象应该隐藏、随场景一起保存还是由用户修改? | 
| name | 对象的名称。 | 
| BroadcastMessage | 调用此游戏对象或其任何子项中的每个 MonoBehaviour 上名为 methodName 的方法。 | 
| CompareTag | Checks the GameObject's tag against the defined tag. | 
| GetComponent | Returns the component of type if the GameObject has one attached. | 
| GetComponentInChildren | Returns the Component of type in the GameObject or any of its children using depth first search. | 
| GetComponentInParent | Returns the Component of type in the GameObject or any of its parents. | 
| GetComponents | 返回 GameObject 中类型为 type 的所有组件。 | 
| GetComponentsInChildren | Returns all components of Type type in the GameObject or any of its children. Works recursively. | 
| GetComponentsInParent | 返回 GameObject 或其任何父项中类型为 type 的所有组件。 | 
| SendMessage | 调用此游戏对象中的每个 MonoBehaviour 上名为 methodName 的方法。 | 
| SendMessageUpwards | 调用此游戏对象中的每个 MonoBehaviour 上或此行为的每个父级上名为 methodName 的方法。 | 
| TryGetComponent | 获取指定类型的组件(如果存在)。 | 
| CellToLocal | 将单元格位置转换为本地空间位置。 | 
| CellToLocalInterpolated | 将插值单元格位置(浮点数)转换为本地空间位置。 | 
| CellToWorld | 将单元格位置转换为世界空间位置。 | 
| GetBoundsLocal | 返回该位置的单元格的本地边界。 | 
| GetLayoutCellCenter | 获取 Grid 的设置布局的单元格默认中心坐标。 | 
| LocalToCell | 将本地位置转换为单元格位置。 | 
| LocalToCellInterpolated | 将本地位置转换为单元格位置。 | 
| LocalToWorld | 将本地位置转换为世界位置。 | 
| WorldToCell | 将世界位置转换为单元格位置。 | 
| WorldToLocal | 将世界位置转换为本地位置。 | 
| GetInstanceID | Gets the instance ID of the object. | 
| ToString | 返回对象的名称。 | 
| Destroy | 移除 GameObject、组件或资源。 | 
| DestroyImmediate | 立即销毁对象 /obj/。强烈建议您改用 Destroy。 | 
| DontDestroyOnLoad | 在加载新的 Scene 时,请勿销毁 Object。 | 
| FindObjectOfType | 返回第一个类型为 type 的已加载的激活对象。 | 
| FindObjectsOfType | Gets a list of all loaded objects of Type type. | 
| Instantiate | 克隆 original 对象并返回克隆对象。 | 
| bool | 该对象是否存在? | 
| operator != | 比较两个对象是否引用不同的对象。 | 
| operator == | 比较两个对象引用,判断它们是否引用同一个对象。 |