2D toolkit使用教程

2D toolkit使用教程

1、创建和使用精灵

设置摄像机模式为Orthographic正投影

2D toolkit使用教程

创建精灵集

2D toolkit使用教程

2D toolkit使用教程

选择刚建的精灵集2D toolkit使用教程并在Inspector修改名字和进入精灵集编辑界面做精灵采集操作2D toolkit使用教程

拖动精灵素材到该区域,然后点击commit

2D toolkit使用教程

创建和使用精灵

2D toolkit使用教程

可以在这选择精灵集和选择精灵集中的精灵集

2D toolkit使用教程

这就完成了精灵创建和使用,运行可以看到效果;

注意:如果运行后看不到精灵,可能是摄像机层和精灵层Z坐标一样或大摄像机Z坐标大于精灵,稍做Z值修改正常;

2、创建精灵动画

2D toolkit使用教程

2D toolkit使用教程

选择精灵动画

2D toolkit使用教程

2D toolkit使用教程

选择刚才创建的精灵集做为动画素材

2D toolkit使用教程

2D toolkit使用教程

1添加帧类似flash;    2选择精灵      3commit


2D toolkit使用教程



2D toolkit使用教程

1选择精灵集和精灵材质; 2是选择动画集中的clip

勾选play antomatically 运行就可以看到效果

demo下载地址http://down.51cto.com/data/1116330