标题: unity3d下拉菜单实现代码 [打印本页] 作者: 她。 时间: 2012-7-27 16:55 标题: unity3d下拉菜单实现代码 // unity3d下拉菜单效果
//you can use or mod this file anyway you like and if you make something cool out of it
// and like to share it send it to piershaw@gmail.com
//just add it to a cam or empty gameObject
// to add buttons just Repeat what you see
private var Ypos1 : float = 0.0;
private var Ypos2 : float = 0.0;
private var Ypos3 : float = 0.0;
private var Ypos4 : float = 0.0;
private var showDropdownButtons1 : boolean;
private var showDropButtonsUP1 : boolean;
var dropSpeed : float = 400.0;// if you like change the speed
function Update(){
if(showDropdownButtons1 == ***e){
Ypos1 += Time.deltaTime * dropSpeed;