c#, 静态数组初始化
public static Vector3[] dir = {
new Vector3( -1, 0, 0 ),
new Vector3( 1, 0, 0 ),
new Vector3( 0, 1, 0 ),
new Vector3( 0, -1, 0 )
};
unity, getAxis与getAxisRaw的区别,getAxisRaw只会返回-1,0,1。 而getAxis会返回-1,1之间的值。
换句话说,getAxisRaw不会做平滑化处理。详细解释,见官方文档,Input Reference
设置2D Sprite的锚点:http://www.xuanyusong.com/archives/3254
脚本中,控制摄像机的视距(拉远拉近摄像头的效果), 2D下设置 Camera.main.orthographicSize 的值即可。
armeabi
Unity, 编译成apk时,报下列错误。
AndroidManifest.xml:4: error: No re