纳金网

标题: A tileset selector(三) [打印本页]

作者: 会飞的鱼    时间: 2011-11-18 15:15
标题: A tileset selector(三)


           Note that it will be stretched over your selection.
         

           Step 4
           

           Drag your main tileset from your hierarchy to the "Current Tileset" variable exposed in the Tile Manager component of your GameObject from Step 1. Set the "Tile Size" variable exposed directly below it. This is the square root size in pixels of each individual tile. For example, a value of "16" indicates that each tile in your tileset is 16 pixels by 16 pixels (16x16).
         

           Step 5
           

           Set the "Unique ID" property. This should be a way for you to identify the assets that will be created, and it must be unique (or else the editor will overwrite existing assets).
         

           Step 6
           

           Click "Open Tile Selector". An EditorWindow will pop up with your tileset. Use the Zoom buttons to get closer or further from your tileset. Click and drag to select the area you want on your sprite. Click "Set Sprite" to apply the cropped image. You're done!
         

           Step N
           

           To skip all the setup, just duplicate the sprite you made above, or work from a prefab, and the process becomes much faster.
         

           Extras
           

           If you somehow lost your assets, just press "Reselect last tile configuration", and the script will pick the last tile you chose and re-create and re-apply the texture and material.
         

           If you want to get rid of the materials and assets you created with this tile, just press "RESET: Lose all assets and selection data?" to start this tile from scratch.
         

作者: tc    时间: 2012-1-20 23:30
2011就要离去,生活的碎片拼凑起又一个过去,记得打开心灵的瓶塞,把压力和不快释放出去,把幸福和快乐的种子装进瓶里,愿你2012一切如意!

作者: tc    时间: 2012-1-22 23:24
节气交替,温差变幻;天气寒冷,注意流感;多加衣服,适时添穿;不为瘦身,只为保暖;关怀送上,短信祝愿:平安快乐,健康过年!

作者: 奇    时间: 2012-1-24 23:30
新年的风,吹散你的阴霾;新年的雨,冲刷你的无奈;新年的雾,锁定你的失败;新年的日,照耀你的期待。新年到来,幸福怀揣,新年快乐,响彻天外!

作者: 晃晃    时间: 2012-1-26 23:18
送你一件外套,前面是平安,后面是幸福,吉祥是领子,如意是袖子,快乐是扣子,口袋里满是温暖,穿上吧,让它相伴你的每一天!新年快乐!

作者: 菜刀吻电线    时间: 2012-5-22 23:20
很经典,很实用,学习了!

作者: tc    时间: 2012-5-22 23:24
水……生命之源……灌……

作者: 菜刀吻电线    时间: 2012-7-20 23:19
你们都躲开,我来顶

作者: 菜刀吻电线    时间: 2012-9-2 00:30
谢谢楼主,真是太实用了

作者: tc    时间: 2013-2-27 23:25
凡系斑竹滴话要听;凡系朋友滴帖要顶

作者: 菜刀吻电线    时间: 2013-3-17 23:32
很有心,部分已收录自用,谢谢





欢迎光临 纳金网 (http://rs.narkii.com/club/) Powered by Discuz! X2.5