Unity2D使用Tiled2Unity读取TiledMap中的自定义属性
来源:互联网 发布:淘宝网买家投诉电话 编辑:程序博客网 时间:2024/05/22 13:10
继承Editor Scripts下的ICustomTiledImporter,实现HandleCustomproperties接口
例:
[Tiled2Unity.CustomTiledImporter]class CustomImporterAddComponent : Tiled2Unity.ICustomTiledImporter{ public void HandleCustomProperties(UnityEngine.GameObject gameObject, IDictionary<string, string> props) { // Simply add a component to our GameObject if (props.ContainsKey("AddComp")) { gameObject.AddComponent(props["AddComp"]); } } public void CustomizePrefab(GameObject prefab) { // Do nothing }}
0 0
- Unity2D使用Tiled2Unity读取TiledMap中的自定义属性
- Unity2D使用Tiled2Unity导入带碰撞体的TiledMap地图
- TiledMap 使用
- Cocos2dx杂记:Tiledmap读取
- cocos2dx读取tiledmap地图常见问题
- tiledmap瓦片地图使用
- TiledMap地图的使用
- cocos2dx使用tiledmap
- TiledMap使用笔记
- Tiledmap基本使用教程
- Egret中使用TiledMap
- TiledMap的使用
- 属性动画在自定义控件中的使用
- Android中的自定义view和自定义属性TypedArray的使用
- [Unity] Unity2D 中的物理关节
- tiledmap瓦片地图使用2
- cocos2d-x2.2.3 如何读取Tiledmap地图
- android游戏开发框架libgdx的使用(十三)—TiledMap中的角色和角色移动
- GMT、UTC和DST
- JS学习(离开了jquery我们能做什么)-DOM操作
- android异步的几种方式
- Okhttp的使用
- C++继承方式
- Unity2D使用Tiled2Unity读取TiledMap中的自定义属性
- 选购壁纸的五步骤
- BZOJ4810: [Ynoi2017]由乃的玉米田 莫队 bitset
- Hierarchical Question-Image Co-Attention for Visual Question Answering
- 适配android7.0:获取文件的Uri
- java练习 一、HelloWorld
- Hive(十)--数据类型转换、字符串函数、条件判断
- 堆、列表、队列和栈
- 汉明距离的求解