iphone

u8 的头像

unity3d iphone游戏开发时的场景优化

Unity3D是一款优秀的3D游戏引擎,支持iPhone游戏开发。但是由于硬件限制,如果不进行优化,有时开发好的游戏放到真机运行效率是比较低的。以下是一些优化的小技巧:

 

- 试试把gameobject 一个一个禁用,确定下什么最影响性能

 

- stats 里面有多少个 Draw calls & 三角形

 

- 合并网格物体

 

- 合并材质张数

 

- 不要用网格碰撞.

 

- Unity对带动作的模型渲染消耗比较大,如果是静态的不带动作文件的模型渲染不会出现效率问题,但是要确保只绘制屏幕内的东西

uke 的头像

Unity iPhone Touch Animation Tutorial,untiy3d iphone简单动画开发教程

老外写的一篇关于在iphone上进行unity3d开发的一个小教程,比较基础,主要的知识点包括:

1、点击触摸屏,播放对应的物体动画

2、在maya中创建好物体及动画

3、在unity3d中进行动画设置

4、设置一个2d场景的灯光和摄像机

5、设置一个背景

项目文件在教程最后附件中!

I started working with Unity iPhone a few days ago and I’ve been digging around in the example game project files and reading thru forum posts looking for clues on how to make stuff work.   I’ve found a few good/basic tutorials but I was looking for something a little different so I figured I’d just dive in.

uke 的头像

unity3d在iphone上的多点触摸应用

老外的研究例子,本来有一段flash视频,好像地址失效了,就不放上来了。

There are a lot of questions on the Unity forums about how to handle multi-touch on iPhone. We’ve done a few experiments with multi-touch–although nothing in a game yet–but here’s one solution. This had a few goals:

  • Avoid iPhoneTouchPhase, which is unreliable (particularly with the remote)
  • Abstract touch tracking logic from game logic
  • Use a minimal amount of code

Multi-Touch Example (Unity iPhone) from Matthew Wegner on Vimeo.