Version: 2020.1
瓦片地图渲染器 (Tilemap Renderer)
瓦片地图工作流程

瓦片资源

Tiles are Assets that are arranged on Tilemaps to construct a 2D environment. Each Tile references a selected Sprite, which is then rendered at the Tile’s location on the Tilemap Grid. Refer to the Creating Tiles documentation for information about preparing and importing Sprites for your Tiles, and the different methods for creating the Assets in the Editor.

瓦片资源图标
瓦片资源图标

资源属性

Inspector 窗口
Inspector 窗口
属性 功能
Preview 显示所选瓦片的视觉效果预览。
Sprite 选择要在此瓦片上渲染的精灵。单击右侧的圆圈图标可打开对象选择器窗口,然后从可用的精灵资源中进行选择,或者将精灵直接拖到此框中。
Color 使用所选颜色为此瓦片上放置的精灵进行着色。设置为白色时,将渲染没有色调的精灵。
Collider Type 定义为瓦片生成的碰撞体的形状。
    None 不生成碰撞体。
    Sprite 基于所选__精灵__的轮廓生成碰撞体形状。
    Grid The Collider shape is based on a cell of the Tilemap. The shape of a cell depends on the Cell Layout of the Tilemap.

  • 页面内容和屏幕截图更新于 2020.1 NewIn20201
  • 2017.2 版中添加了瓦片地图 NewIn20172
瓦片地图渲染器 (Tilemap Renderer)
瓦片地图工作流程
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961