2012年10月9日
摘要: usingUnityEngine;usingSystem.Collections;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem;publicclassComboBox:MonoBehaviour{privateDictionary<object,object>dataSource;privateobjectcurrentValue;privateobjectcurrentDisplayText;privateintcurrentIndex;privateGUISkinskin;privateRectrect 阅读全文
posted @ 2012-10-09 14:29 雨季 阅读(16812) 评论(2) 推荐(0) 编辑
摘要: scrollPosition=Vector2.Lerp(scrollPosition,GUI.BeginScrollView(rectList,scrollPosition,rectListView,false,true),0.5f);BeginScrollView返回值与原始值做差值运算,这里参数为0.5f其实就是取两者的平均数。算个小技巧吧,主要问题还是向量的运算 阅读全文
posted @ 2012-10-09 14:27 雨季 阅读(521) 评论(0) 推荐(0) 编辑