当前位置:网站首页>[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.
边栏推荐
- 使用VS Code搭建ESP-IDF环境
- Awesome!Coroutines are finally here!Thread is about to be in the past
- Not to be ignored!Features and advantages of outdoor LED display
- After the cnpm installation is successful, the prompt is not an internal and external command, nor is it a runnable command solution
- 爬虫注意
- window.open不显示favicon.icon
- 【Unity入门计划】基本概念(8)-瓦片地图 TileMap 02
- 【QT】Qt 给已经开发好的程序快速封装成动态库
- 不可忽略!户外LED显示屏的特点及优势
- How to get the 2 d space prior to ViT?UMA & Hong Kong institute of technology & ali SP - ViT, study for visual Transformer 2 d space prior knowledge!.
猜你喜欢
一文看懂推荐系统:召回02:Swing 模型,和itemCF很相似,区别在于计算相似度的方法不一样
一个文件管理系统的软硬件配置清单
语音识别新一轮竞争打响,自然对话会是下一个制高点吗?
A new round of competition for speech recognition has started. Will natural dialogue be the next commanding height?
Difference and performance comparison between HAL and LL library of STM32
证实了,百度没有快照了
【Unity入门计划】基本概念(7)-Input Manager&Input类
How to prevent hacking Windows server security Settings
2021年数据泄露成本报告解读
常见分布式理论(CAP、BASE)和一致性协议(Gosssip、Raft)
随机推荐
CS免杀姿势
[Code Hoof Set Novice Village 600 Questions] Define a function as a macro
Small Tools (4) integrated Seata1.5.2 distributed transactions
2021年数据泄露成本报告解读
ReentrantLock详解
How to get the 2 d space prior to ViT?UMA & Hong Kong institute of technology & ali SP - ViT, study for visual Transformer 2 d space prior knowledge!.
leetcode: 899. Ordered Queue [Thinking Question]
No inner demons, to dry!SQL optimization and diagnosis
常见分布式理论(CAP、BASE)和一致性协议(Gosssip、Raft)
泰山OFFICE技术讲座:文字边框高度研究
QT QT 】 【 to have developed a good program for packaging into a dynamic library
Interpretation of the 2021 Cost of Data Breach Report
How to play deep paging with hundreds of millions of data?Compatible with MySQL + ES + MongoDB
参与便有奖,《新程序员》杂志福利来袭!
Tolstoy: There are only two misfortunes in life
深入浅出Flask PIN
Spark entry learning-2
Research on power flow in DC microgrid based on Newton's method (Matlab code implementation)
如何将二维空间先验注入到ViT中? UMA&港理工&阿里提出SP-ViT,为视觉Transformer学习2D空间先验知识!...
[微信小程序开发者工具] × #initialize