# 2d-extras
2d-extras is a repository containing helpful reusable scripts which you can use to make your games, with a slant towards 2D. Feel free to customise the behavior of the scripts to create new tools for your use case!
Implemented examples using these scripts can be found in the sister repository [2d-techdemos](https://github.com/Unity-Technologies/2d-techdemos "2d-techdemos: Examples for 2d features").
All items in the repository are grouped by use for a feature and are listed below.
## How to use this
You can use this in two different ways: downloading this repository or adding it to your project's Package Manager manifest.
Alternatively, you can pick and choose the scripts that you want by placing only these scripts in your project's `Assets` folder.
### Download
#### Setup
Download or clone this repository into your project in the folder `Packages/com.unity.2d.tilemap.extras`.
### Package Manager Manifest
#### Requirements
[Git](https://git-scm.com/) must be installed and added to your path.
#### Setup
The following line needs to be added to your `Packages/manifest.json` file in your Unity Project under the `dependencies` section:
```json
"com.unity.2d.tilemap.extras": "https://github.com/Unity-Technologies/2d-extras.git#master"
```
### Tilemap
For use with Unity `2021.1.0f1` onwards.
Please use the `2020.3` branch for Unity 2020.1-2020.3 versions.
Please use the `1.5.0-preview` tag for Unity 2019.2-2019.4 versions.
Please use the `2019.1` tag for Unity 2019.1 versions.
Please use the `2018.3` branch or the `2018.3` tag for Unity 2018.3-2018.4 versions.
Please use the `2018.2` branch or the `2018.2` tag for Unity 2018.2 versions.
Please use the `2017` branch or the `2017` tag for earlier versions of Unity (from 2017.2 and up).
##### Brushes
- **Coordinate**: This Brush displays the cell coordinates it is targeting in the SceneView. Use this as an example to create brushes which have extra visualization features when painting onto a Tilemap.
- **Line**: This Brush helps draw lines of Tiles onto a Tilemap. The first click of the mouse sets the starting point of the line and the second click sets the ending point of the line and draws the lines of Tiles. Use this as an example to modify brush painting behaviour to making painting quicker with less actions.
- **Random**: This Brush helps to place random Tiles onto a Tilemap. Use this as an example to create brushes which store specific data per brush and to make brushes which randomize behaviour.
- **Prefab**: This Brush instances and places the containing Prefab onto the targeted location and parents the instanced object to the paint target. Use this as an example to quickly place an assorted type of GameObjects onto structured locations.
- **PrefabRandom**: This Brush instances and places a randomly selected Prefabs onto the targeted location and parents the instanced object to the paint target. Use this as an example to quickly place an assorted type of GameObjects onto structured locations.
- **GameObject**: This Brush instances, places and manipulates GameObjects onto the scene. Use this as an example to create brushes which targets objects other than tiles for manipulation.
- **TintBrush**: Brush to edit Tilemap per-cell tint colors.
- **TintBrushSmooth**: Advanced tint brush for interpolated tint color per-cell. Requires the use of custom shader (see TintedTilemap.shader) and helper component TileTextureGenerator.
- **Group**: This Brush helps to pick Tiles which are grouped together by position. Gaps can be set to identify if Tiles belong to a Group. Limits can be set to ensure that an over-sized Group will not be picked. Use this as an example to create brushes that have the ability to choose and pick whichever Tiles it is interested in.
##### Tiles
- **Animated**: Animated Tiles are tiles which run through and display a list of sprites in sequence.
- **Pipeline**: Pipeline Tiles are tiles which take into consideration its orthogonal neighboring tiles and displays a sprite depending on whether the neighboring tile is the same tile.
- **Random**: Random Tiles are tiles which pseudo-randomly pick a sprite from a given list of sprites and a target location, and displays that sprite.
- **Terrain**: Terrain Tiles, similar to Pipeline Tiles, are tiles which take into consideration its orthogonal and diagonal neighboring tiles and displays a sprite depending on whether the neighboring tile is the same tile.
- **RuleTile**: Generic visual tile for creating different tilesets like terrain, pipeline, random or animated tiles.
- **Hexagonal Rule Tile**: A Rule Tile for use with Hexagonal Grids. Enable Flat Top for Flat Top Hexagonal Grids and disable for Pointed Top Hexagonal Grids.
- **Isometric Rule Tile**: A Rule Tile for use with Isometric Grids.
- **RuleOverrideTile**: Rule Override Tiles are Tiles which can override a subset of Rules for a given Rule Tile to provide specialised behaviour while keeping most of the Rules originally set in the Rule Tile.
- **Weighted Random**: Weighted Random Tiles are tiles which randomly pick a sprite from a given list of sprites and a target location, and displays that sprite. The sprites can be weighted with a value to change its probability of appearing.
##### Other
- **GridInformation**: A simple MonoBehaviour that stores and provides information based on Grid positions and keywords.
- **Custom Rules for RuleTile**: This helps to create new custom Rules for the Rule Tile. Check the [Wiki](https://github.com/Unity-Technologies/2d-extras/wiki) or this great [video](https://youtu.be/FwOxLkJTXag) for more information on how to use this!
[![How to make Custom Rule Tiles in Unity Video](http://img.youtube.com/vi/FwOxLkJTXag/0.jpg)](http://www.youtube.com/watch?v=FwOxLkJTXag "How to make Custom Rule Tiles in Unity")
### Contribution Notice
From 7 January 2019 until 12 February 2020, all contributions are licensed under the Unity Companion License for Unity-dependent projects (see https://unity3d.com/legal/licenses/unity_companion_license).
没有合适的资源?快使用搜索试试~ 我知道了~
坐标出问题的unity文件(7-zip压缩)
共22258个文件
meta:6650个
cs:4059个
png:1823个
需积分: 0 0 下载量 119 浏览量
2023-03-04
10:54:16
上传
评论
收藏 400.77MB 7Z 举报
温馨提示
在unity社区提问 unity世界坐标系出现的问题 ,unity社区的提问和文章似乎都发不了插件,所以就在csdn发一下吧
资源推荐
资源详情
资源评论
收起资源包目录
坐标出问题的unity文件(7-zip压缩) (22258个子文件)
000449251c964c0170e8be3f595afe46 5KB
00083b8e067021deb7d3bfeeac54d5c7 8KB
002355df1d16f472da7e4e8f3dd7cca5 30KB
00253a0f2b433bcd1182389a94160911 30KB
002a42b346122c2d339f7749964055ee 31KB
00342a1f96d4b2d1af4890865196315e 11KB
00355a9276721decd5c51ffe1ed37f9e 12KB
004779a5e5d4b92873e9dadcc338dadc 8KB
005e5ddad7124a8ac7c80de6fd0fb01d 31KB
00766fed4e44032c3a72496dd55ccbb5 9KB
0077a43d7a6ca9e5524d9a88f4796140 288KB
007850dd2a8f28284c36c043781043d7 6KB
008aa1ccf2e6d32c0afc90af59be1dd2 5KB
008bb0d1e7b04d1292f0932485cfdfa0 29KB
009dc2b1927aae7c980ab7de6f3abc8f 6KB
00b16ce4d4fb86c6c5c630fb7146fe0a 6KB
00c60626a848fae5b2ae29410ee22f98 5KB
00d5974b5138b9f6567d126ce3bca64f 6KB
00df64469c78fbb0f2626f9e91a4cfc3 33KB
00ec00ff0315192a1a3b0877f1ecf015 11KB
00f89c78c06fb8f36efbe703185abd75 5KB
010213fe6b566dcf0db4e5a65e8021fe 33KB
01085e4fd67f645daba3b5b19b43ea86 93KB
010e86af959457eee6c7fd697baa65ac 7KB
011329c5448cabb594a42ebef3312405 6KB
0115d9a4221131b82c70bacc56edde29 6KB
0116694aec95b9105a850d63b97d9242 5KB
012188dd863452d4f5189ef6e06f3957 5KB
01268d2248e1d9e3a3d4491aaf2e2e65 19KB
0139513aa5b87a5831f1a385cc65b990 12KB
013c591fb0b89168e2065d54d828a7ee 5KB
0144865c31a175e5a849ebdf082e42a4 19KB
0148abcaa66eed69a0959413cded8a1b 6KB
01495f300e5e68513172562b4fdaeb1e 4KB
014f2e8c20386b330529d3cae5d88061 5KB
01543fda024b27a0d8e3a36ea6359285 11KB
016a0cab06fb693a3750e2881f45c787 9KB
016e446e2d59b9345528de60b3f587d7 7KB
017017a25fadd7d54253c3ffcd17ee0b 19KB
0172c05421744352c858a21f8c9051d6 5KB
01767a69cad71e7c2db952c93e4206a7 4KB
0179c53a0c9645c29927ef5eaa14e923 5KB
01967d07c36b9015ae37d30b6888bcd4 8KB
019aae187e2a41b9f41afdf194d705ef 29KB
01a2f508612789314cce164ec91b73d5 17KB
01af22222d838c11c170d4e65611a4f8 8KB
01b52ebe1d818f15cacac6236bdd16f5 31KB
01bba0afdd12a90f9dcb6a6c3582c734 143KB
01cafd33f1a40837974c922ba6ad3d9d 5KB
01cfd89435d83dad2ff1df3c1f027d84 29KB
01d3a62dc2f5ed3ffcdade7837f613c4 6KB
01d9eadfb4a0edbb9735d9ddd13d216c 29KB
01dc3725aad18d777ecabf66152994e5 5KB
01f8a3f94c953fd21e86dc2c9dfbbc18 7KB
01fb60c51b61c2dd09c406a3813387c7 9KB
02081fec500c755fd6f2c1f46ae3dd9f 5KB
020c0cc0ed812309abc1284d76ee24ce 18KB
022201fa4bca4ef873ad08211bf6c62a 6KB
024960e3ce09249457724e94a55e1ee7 6KB
024d7d1ce72c168f251b1d2b1f82c8b5 5KB
027d6460ec55e7acca8d8cbcb3efe15b 18KB
028391864e7655d339941f6aeaaa26f7 5KB
028968b7b7423dfd75f1a2d4ee5f240e 6KB
028aaa5c5f76b7b8a99729216f5b5d29 30KB
029e50b319fc0270fc645c51fb458c3a 5KB
029e8a33b707508911d1d204d4a5ce67 5KB
02a778ea2acbce7b89a2533c3732b9f2 40KB
02e23c2c848671bb7d388c1c5646a67f 5KB
02f637e617f09f08e848e3dda3919f4b 11KB
0303177133f63511ed2c64e481c175d8 29KB
031583d0ed335a6ece3f60c29a070531 24KB
031592e0ea76c18b6bc4d85b29a3bf42 29KB
031a8b7df11fd12901d857a919ae24a4 9KB
031e12e51240b69c308844cb4f713c11 84KB
0326ade7b97c79ac6f55760444bf9064 5KB
03284b8530a12ea574067fd58e5064d0 29KB
034e73e8106dfda45baab2f9f1476054 6KB
0359ee4bc06bfe4663e863d86a8b36f5 5KB
0376dad70bf9443072ab27a2f97a85fc 19KB
037b45c25bf9d98a808a4203df0c25b6 30KB
0380f8161c70d2c99944ce419afb3aa4 41KB
0390bcd4d808ebf79942a6712c4732ee 6KB
0390e1a7a1a155a174421b708cf68cb6 5KB
03a052cd72cbaa3c2d58f22459f117a3 6KB
03a2f2dfaf803d4b3899d933cf982d07 33KB
03ac6ab459bff34cc58bdff51c8c9466 6KB
03b962a434498b9c3ecfa0f5593444e6 7KB
03d45b6dc9a51bf8c64480eaeeccc921 4KB
03d8f3b391331bc0826737f306c79464 5KB
03e4d8ab46f1f927802ca8668c05a710 9KB
04047c4200358a4e24388b51e37e2544 5KB
040757492bc52691332f8203c335715b 32KB
040b4ea4b8f455590f330c3aaeca4aa9 19KB
04297f6b2c16f1b3278ccecc29b22e41 13KB
0432ea6cf0f4536ec51a16f7d243b667 7KB
0437c1b66d090cf7f7070ff138a0dd84 47KB
04396d7aad383bce4ae5d556c01ad72d 39KB
043a475677c5f1518b274144de75ad93 5KB
044d4ca5db8c3ea542a6aa620b642331 20KB
044e7b933f24b196141f0092d0b42d46 6KB
共 22258 条
- 1
- 2
- 3
- 4
- 5
- 6
- 223
资源评论
piduoduo2
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- IMG_20240424_183805.jpg
- DatabaseWatermarkingBasedonTextFormat
- -移动通信-网络课程设计与研究
- 基于Python的PCA人脸识别算法的原理及实现代码+文档详解.zip
- 甘肃移动全业务工程建设项目管理流程优化研究
- 549springboot + vue 民宿管理平台.zip (可运行源码+数据库文件+文档)
- ZArchiver.Pro_0.9.5.apk
- vmware环境配置.mp4
- 548springboot + vue 大学生社团活动平台.zip(可运行源码+数据库文件+文档)
- 微信小程序 辩论倒计时小程序源码 作业设计demo 计算机专业参考
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功