当前位置:网站首页>[Unity Getting Started Plan] Basic Concepts (8) - Tile Map TileMap 02
[Unity Getting Started Plan] Basic Concepts (8) - Tile Map TileMap 02
2022-08-03 16:09:00 【flashinggg】
目录
5 Dividing the whole piece of tileSprite
Segmentation elves Slice Sprite
6.1 Since the rules for tiles Rule Tile
6.3 Advanced Rule Override Tile Can modify the rules cover
在【Unity入门计划】基本概念(8)-瓦片地图 TileMap 01中学习了Unity中TilemapThe composition and some basic concepts,This part to continue tiled map learning.
5 Dividing the whole piece of tileSprite
Before you mention it:在制作2D游戏时,Typically providing a set of map tiles of a good,We can choose one piece inPalette里绘制Tilemap,And adjust the size of the size according to be fond of.
Art generally offer developers a bigger size elf,例如RubyAdventure项目提供的:

Then the next question to:如果按照之前01里的流程,Direct the elves into aTile再加到Palette中绘制,会出现问题:Can't in accordance with the expected,分成了9An optional tiles,But the nine tiles of a whole as a large tiles.

Mapped effect becomes only a whole piece of drawing:

这并不是我们想要的效果,At this point you need for this entire tiles elves shard after,再拖入Palette进行绘制.
Segmentation elves Slice Sprite
进入TileElves property panel,进入Sprite Editor界面:

发现此时Slice是无法进行操作的

需要先将Sprite ModeOperation can be conducted toMultiple
修改后ApplyApplication off,就可以进入Slice了

SliceThe type of the general selectionGrid By Cell Size 或者Cell Cout
划分好之后,可以看到ProjectThe elves in the panel into the9个小Tile组成的整体.

再直接拖入Palette,Save can choose after9A different littleTileFor a free map.

6 瓦片地图的高级使用
In addition to the programmable tiles and brush,Scriptable Tile&Scriptable Brush,Unity还提供了一个TIleMap的拓展包,Expand the function of its original——Rule Tile
6.1 Since the rules for tiles Rule Tile
与代码相比,UnityThe visual script came out,The use of convenient developers better,To create good will automatically according to the place of the mouse across fill after tiles,更加高效.
SliceAfter the elves,在创建RuleTile的同时,在Tiling RulesPart of the sequence according to the small tiles add a partition of the tiles.

不同的是,Need to give each small tiles add its relationship with the surrounding tiles——Whether to support automatic identification.

This method compared with only divided tiles before more efficient.
6.2 Rule Override Tile 规则覆盖
提供原始的Rule Tile的规则,新的TilemapIf like the rules of the original production,则直接Override,下面是具体步骤:
Project -> Create -> 2D ->Tiles -> Rule Override Tile,Create a coverTile

在TileJoin want to copy the rules ofRule Tile,Respectively the rules of the sameTileCorresponding in a row,This generates a newRule Tile了.

6.3 Advanced Rule Override Tile Can modify the rules cover
This is a more comprehensive,Not only can copy,还可以随意更改.
以上就是关于Tile MapThe use of all learning record.
边栏推荐
猜你喜欢

全新探险者以40万的产品击穿豪华SUV价格壁垒

QT QT 】 【 to have developed a good program for packaging into a dynamic library

JS basics--judgment
![[微信小程序开发者工具] × #initialize](/img/38/ea90525f53de3933a808f0d75028b0.png)
[微信小程序开发者工具] × #initialize

AWS China SDN Connector

一文看懂推荐系统:召回01:基于物品的协同过滤(ItemCF),item-based Collaboration Filter的核心思想与推荐过程

How to start an NFT collection

人脸识别损失函数的汇总 | Pytorch版本实现

spark入门学习-2

STM32的HAL和LL库区别和性能对比
随机推荐
Deep Learning - Install CUDA and CUDNN to implement GPU operation of tensorflow
Not to be ignored!Features and advantages of outdoor LED display
Taurus.MVC WebAPI 入门开发教程1:框架下载环境配置与运行(含系列目录)。
2021年数据泄露成本报告解读
参与便有奖,《新程序员》杂志福利来袭!
袁小林:沃尔沃专注于出行的安全感,并且把它做到极致
语音识别新一轮竞争打响,自然对话会是下一个制高点吗?
mysql delete 执行报错:You can‘t specify target table ‘doctor_info‘ for update in FROM clause
微电网和直流电网中最优潮流(OPF)的凸优化(Matlab代码实现)
请问下,flink cdc监控oracle,我看源码是通过sid方式的,请问怎么改成service
[Code Hoof Set Novice Village 600 Questions] Define a function as a macro
攻防世界----bug
请问大家,MySQL全量怎么样可以提高性能呢?我这里瓶颈是在Source上,在不增加并行度的情况下,
在 360 度绩效评估中应该问的 20 个问题
我在滴滴做开源
用户侧有什么办法可以自检hologres单表占用内存具体是元数据、计算、缓存的使用情况?
聊聊这个SaaS领域爆火的话题
扩展欧几里得求逆元实例
小熊派——无线联网开发
为教育插上数字化的翅膀,网易云信发布「互联网+教育」整体解决方案