摘要: 1. Awake() Start() Update() FixedUpdate() unity 是单线程的 , 对于unity后台执行脚本,每个脚本的Awake、Update、LateUpdate、FixedUpdate,方法在后台都有一个总汇。把每个后台的Awake(){ 脚本0中的Awake... 阅读全文
posted @ 2015-08-29 18:39 bambom 阅读(2619) 评论(0) 推荐(0) 编辑
摘要: 数组: 数组 ,他可以存储相同类型的固定数量的数据,可以通过索引取得相应的值。 如果存储的是值类型的话:比如 int[] arr=new int[2]; 那么变量arr 在栈上 ,他引用 两个 托管堆上的 int 值。 如果存储的是引用类型:比如 Person[] arr=new Per... 阅读全文
posted @ 2015-08-27 23:44 bambom 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 把 avtivity.java 里面的内容拷贝到你的mainActivity里面在unity里面调用TakePhotoSdkUtil.SendMessageOpenPhoto(FILE_NAME);这个我注释掉的地方是回调到unity里面的 访问路径用 Application.persistentD... 阅读全文
posted @ 2015-08-26 17:10 bambom 阅读(2796) 评论(0) 推荐(0) 编辑
摘要: 1 using UnityEngine; 2 using System.Collections; 3 4 public class CameraFllow : MonoBehaviour { 5 6 private Transform player; 7 public floa... 阅读全文
posted @ 2015-08-19 14:24 bambom 阅读(612) 评论(0) 推荐(0) 编辑
摘要: using UnityEngine;using System.Collections;public class Game : MonoBehaviour { // Use this for initialization void Start () { FindMateria... 阅读全文
posted @ 2015-08-18 17:03 bambom 阅读(868) 评论(0) 推荐(0) 编辑
摘要: springmvc 框架原理 : 前端控制器、处理器映射器、处理器适配器、视图解析器springmvc 入门:spring 和 ibatis 整合springmvc 注解开发 常用注解学习 参数绑定(简单类型、pojo、集合类型) 自定义参数绑定* 数据回显1.1 springmvc 框架... 阅读全文
posted @ 2015-07-21 01:28 bambom 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-07-17 03:16 bambom 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Import Animation :动画控制器是否导入Bake Animation :Anim. Compression :动画压缩 Keyframe Reduction': 减少关键帧,减少一些不是特别明显的关键帧。 Optinal:最佳的Rotation Error:角度误差,如果上一帧和下... 阅读全文
posted @ 2015-07-17 02:44 bambom 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Texture 导入参数设置 :这些类型都可以通过,Advance 高级配置配置出来,这些选项可以看成是unity做成的预设。 Texture Type 贴图类型 Texture: Alpha from Grayscale : generate Texture's Alpha ... 阅读全文
posted @ 2015-07-16 18:34 bambom 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 首先,在5.0 中,对于每个State 、Bleed Tree 可以给他们添加脚本,就像控制角色模型一样using UnityEngine;using System.Collections;public class State : StateMachineBehaviour { // O... 阅读全文
posted @ 2015-07-16 14:40 bambom 阅读(437) 评论(0) 推荐(0) 编辑