语言英语
  • C#

Tilemap.SetColliderType

声明

public void SetColliderType(Vector3Int position, Tilemaps.Tile.ColliderType colliderType);

参数

position 瓦片在 Tilemap 上的位置。
colliderType 要设置的瓦片在 XYZ 坐标处的碰撞体类型。

描述

根据 Tilemap 中单元格的 XYZ 坐标设置 Tile 的碰撞体类型。

请参阅 可脚本化的瓦片Tilemap 以获取更多信息。


Did you find this page useful? Please give it a rating: