您的位置:首页 > 移动开发 > Unity3D

【unity插件】Tiled2Unity-非常方便的将Tiled导入到unity3d

2015-09-10 12:35 645 查看

在找tiled for unity相关插件的时候,偶然发现一个非常棒的插件,就是Tiled2Unity(点击进入官网),并且这款插件完全免费!!!而且支持的功能真是太良心了!在Tiled编辑好地图之后一键发送到unity,非常之方便。而且提供的unity脚本拓展性非常强。








支持的功能如下:

Features:

Builds a Unity prefab out of your TMX map file
Supports all TMX layer formats (XML, CSV, Base64, gzip/zlib compressed)
Multiple layers and tilesets supported
Exports Object Layer as polygons, polylines, rectangles, circles
Tile Layer collisions supported (with slopes, odd-shaped polygons)
Polygon colliders can be concave, have holes, and be composed of separate polygons
Can assign Tag, Sorting Layer, Order in Layer, and (Physics) Layer of exported
GameObject
s
through properties in Tiled
Support for customized creation of Unity Prefabs
Easy to use: In most cases, you simply export a TMX file into your Unity project and place the automatically generated prefab in your scene – no further edits needed

使用说明和功能介绍看这里:点我

使用示例看这里:点我


Learning Tiled2Unity

I’ve tried to make Tiled2Unity simple to use and understand. Here’s some links that may help you out:

Introduction: Use the test TMX files supplied
with Tiled2Unity to create two simple scenes in your Unity project (one with sloped collision).
Tiled2Unity
Scale: By default, Unity 2D sprites use a coordinate system where 100 pixels equals 1 unit in Unity. I think that’s crazy but this link will show you how to live in that world.
Mega Dad Adventures:
A good number of “advanced” examples of using Tiled2Unity in your Unity projects. Set tags and layers on your imported prefabs and add custom, game-specific behavior.
Tile
EdgeCollider2D Support: Shows you how you can use polylines in the Tile Collision Editor to export EdgeCollider2D objects in your Unity prefab.

ps:支持的unity参数列表

Here’s the list of the properties we can set in Tiled that the Tiled2Unity exporter looks for when constructing a prefab:

unity:tag

unity:sortingLayerName

unity:sortingOrder

unity:layer
(Layer is
such an overloaded term. In Unity it means the “physics” layer.)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: