Unity3D展示必用的动态改变模型大小与方向。先在场景内放置一个cube,设置一个guiskin,并附上中文字体。将Code保存为js,赋给cube。
public var mySkin:GUISkin;
var windowRect = Rect (0, 20, 200 ,150);
var SliderScaleValue:float = 00;
var SliderXValue:float = 00;
var SliderYValue:float = 00;
var SliderZValue:float = 00;
var SliderWindowRect = Rect(80,200,200,150);
var mCube:GameObject;
var xRotation:float;
var yRotation:float;
var zRotation:float;
var wenzi : String;
function Start(){
mCube = GameObjectFind(“Cube”);
//print(mCubetransformlossyScale + ” — ” + mCubetransformlocalScale);
SliderScaleValue = mCubetransformlocalScalex;
}
function Update () {
}
function OnGUI () {
GUIskin = mySkin;
SliderWindowRect = GUIWindow(1,SliderWindowRect,CreateWindow,wenzi);
}
function CreateWindow(windowID : int){
GUIskin = mySkin;
GUILabel(Rect(10,20,50,20),”缩放”);
SliderScaleValue = GUIHorizontalSlider (Rect(60,25,120,20),SliderScaleValue,0,500);
//设置汽车的scale
mCubetransformlocalScale = Vector3(SliderScaleValue,SliderScaleValue,SliderScaleValue);
GUILabel(Rect(10,50,50,20),”旋转X”);
SliderXValue = GUIHorizontalSlider (Rect(60,55,120,20),SliderXValue,0,360);
//设置汽车的xRotation
if(xRotation != SliderXValue){
mCubetransformrotation = QuaternionEuler(SliderXValue,yRotation,zRotation);
xRotation = SliderXValue;
}
GUILabel(Rect(10,80,50,20),”旋转Y”);
SliderYValue = GUIHorizontalSlider (Rect(60,85,120,20),SliderYValue,0,360);
//设置汽车的yRotation
if(yRotation != SliderYValue){
mCubetransformrotation = QuaternionEuler(xRotation,SliderYValue,zRotation);;
yRotation = SliderYValue;
}
GUILabel(Rect(10,110,50,20),”旋转Z”);
SliderZValue = GUIHorizontalSlider (Rect(60,115,120,20),SliderZValue,0,360);
//设置汽车的zRotation
if(zRotation != SliderZValue){
mCubetransformrotation = QuaternionEuler(xRotation,yRotation,SliderZValue);;
zRotation = SliderZValue;
}
GUIDragWindow (Rect (0,0,10000,10000));
}
Ice Cube 原名O’Shea Jackson,生于美国加州的洛杉矶,生日为1969年的6月15日。作为美国洛杉矶著名说唱组合NWA的核心成员之一,Ice Cube也是该组合中最早宣布单飞而谋求个人发展的成员。在离开NWA组合之后,Ice Cube逐渐成长为美国Hip-Hop音乐界最优秀同时也是最具争议的歌手之一。Ice Cube在他个人发展之后的专辑中表现出了更为尖锐的政治和社会观点,这也使得他颇为引人注目的前两张个人专辑《AmeriKKKas Most Wanted》和《Death Certificate》毁誉参半。后来,Ice Cube开始和Cypress Hill等后辈说唱乐团合作,其本人的影响力虽略有下降,但Ice Cube在整个美国说唱界的地位却从未改变。在上世纪90年代,Ice Cube一直都是最耀眼的说唱歌手之一。与众多家境贫寒,从小便浪迹街头的说唱歌手相比,Ice Cube的家境算是比较好的了。原名OShea Jackson的Ice Cube从小生活在洛杉矶的中南部,父母都在加州大学洛杉矶分校(UCLA)工作,而少年时期的Ice Cube也一直都是个好孩子。到了上中学的时候,Ice Cube才开始创作Rap,而他在这个时期创作的歌曲包括了与搭档 Sir Jinx合作写出的《Boyz-n-the Hood》。随着创作水平的不断提高,由Ice Cube领衔的二人说唱组合“CIA”开始在DrDre举办的排队上演出。很快,Ice Cube就通过DrDre结识了当时还在HBO组合的Eazy-E。随后,Eazy-E决定离开HBO。事实上,在这个时候,Eazy-E,DrDre和Ice Cube三人已经构成了NWA组合的雏形。1987年,Ice Cube前往非尼克斯学习建筑。1988年,在拿到了一年制的学位之后,Ice Cube重新回到了洛杉矶。而Ice Cube的这次回归正是时候,因为他正好赶上了NWA组合首张专辑《Straight Outta Compton》的录制。最终,《Straight Outta Compton》在1988年末发行并成为1989年美国地下说唱圈中的热门专辑。专辑歌词中的极端内容得到了各界的关注,其中最引人注目的是美国联邦调查局(FBI)对本张专辑的关注。由于Ice Cube和NWA的经纪人有着很严重的分歧,因此他在1989年末的时候选择了离队。
[编辑本段]演员作品
远射 The Longshots (2008) 第一个周日 First Sunday (2008) 有完没完 Are We Done Yet (2007) 极限特工2 XXX: State of the Union (2005) 我们到了没? Are We There Yet (2005) Beef 2 (2004) 极速酷客 Torque (2004) 理发店2 Barbershop 2: Back in Business (2004) 班哲明传奇 All About the Benjamins (2002) 又是一个星期五 Friday After Next (2002) 理发店 Barbershop (2002) 火星恶灵 Ghosts of Mars (2001) 下个周五 Next Friday (2000) Up In Smoke Tour (2000) 三个好汉 Three Kings (1999) Thicker Than Water (1999) 狂蟒之灾 Anaconda (1997) Dangerous Ground (1997) 星期五 Friday (1995) 擅入 Trespass (1992) 街区男孩 Boyz N the Hood (1991)
[编辑本段]导演作品
玩家俱乐部 Players Club, The (1998)
[编辑本段]编剧作品
班哲明传奇 All About the Benjamins (2002) 又是一个星期五 Friday After Next (2002) 下个周五 Next Friday (2000) 玩家俱乐部 Players Club, The (1998) 星期五 Friday (1995)
[编辑本段]个人专辑
1、In the Movies 唱片:In the Movies 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:2007年9月4日 歌曲列表 Right Here, Right Now Trespass Higher Roll All Day The Wrong N To Fk Wit Maniac In the Brainiac Ghetto Vet The World Is Mine You Know I'm a Ho $100 Dolla Bill Y'All How To Survive In South Central Friday Anybody Seen the Popo's! Natural Born Killaz We Be Clubbin' You Can Do It 2、War & Peace vol2 唱片:War & Peace vol2 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:2000年 歌曲列表 You Can Do It (Instrumental) Niggas Of The Century Waitin' Ta Hate Record Company Pimpin Dinner With The CEO (Insert) Can You Bounce Roll All Day Gotta Be Insanity Mackin' & Driving (Insert) You Can Do It Until We Rich 24 Mo' Hours Mental Warfare (Insert) Supreme Hustle The Gutter Shit You Ain't Gotta Lie (Ta Kick It) Pimp Homeo Hello 3、 War 唱片:War 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1998年 歌曲列表 Penitentiary 3 Strikes You In Extradition X-Bitches If I Was Fucking You Once Upon a Time in the Projects 2 Limos, Demos & Bimbos The Peckin' Order The Curse of Money Cash Over Ass MP Greed Ghetto Vet War & Peace Fuck Dying Dr Frankenstein Pushin' Weight Ask About Me 4、Featuring Ice Cube 唱片:Featuring Ice Cube 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1997年 歌曲列表 Wicked wayz West up! Two to the head Trespass Natural born killaz It's a man's world Game over Endangered species (tales from the darkside) Check yo self Bow down Bop gun (one nation) Bend a corner wit me 5、Bootlegs 唱片:Bootlegs 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1994年 歌曲列表 Robbin' Hood (Cause It Ain't All Good) What Can I Do 24 Wit An L You Know How We Do It (Remix) 2 N The Morning Check Yo Self (Remix) You Don't Wanna Fuck Wit These Lil Ass Gee (Eerie Gumbo Remix) My Skin Is My Skin It Was Agood Day (Remix) U Ain't Gonna Take My LIfe When I Gt To Heaven (Remix) D'voidofpopniggafiedmegamix 6、Lethal Injection 唱片:Lethal Injection 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1993年12月7日 歌曲列表 The Shot (Intro) Really Doe Ghetto Bird You Know How We Do It Cave Bitch Bop Gun (One Nation) What Can I Do Lil Ass Gee Make It Ruff, Make It Smooth Down For Whatever Enemy When I Get To Heaven What Can I Do- (Westside Remix) What Can I Do- (Eastside Remix) You Know How We Do It (Remix) Lil Ass Gee (Eerie Gumbo Remix) 7、Check Yo Self 唱片:Check Yo Self 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1993年 歌曲列表 It Was A Good Day (Album version) 24 with a L Check Yo Self (Remix Instrumental) Check Yo Self 8、The Predator 唱片:The Predator 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1992年 歌曲列表 The First Day Of School When Will They Shot I'm Scared Wicked Now I Gotta Wet 'Cha The Predator It Was A Good Day We Had To Tear This Mothafucka Up Fuck 'Em Dirty Mack Don't Trust 'Em Gangsta's Fairytale 2 Check Yo Self Who Got The Camera Integration Say Hi To The Bad Guy 9、Death Certificate 唱片:Death Certificate 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1991年 歌曲列表 The Funeral The Wrong Nigga To Fuck Wit My Summer Vacation Steady Mobbin Robin Lench Givin Up The Nappy Dug Out Look Who's Burnin' A Bird In The Hand Man's Best Friend Alive On Arrival Death ice cube I Wanna Kill Sam Horny Lil' Devil Black Korea True To The Game Color Blind Doing Dumb Shit Us No Vaseline How To Survive In South Central 10、 AmeriKKKa's Most Wanted 唱片:AmeriKKKa's Most Wanted 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1990年5月16日 A Gangsta's Fairytale AmeriKKKa's Most Wanted Better Off Dead Dead Homiez Endangered Species Endangered Species (Remix) Get Off My Dick and Tell Yo Bitch to Come Here Get Off My Dick and Tell Yo Bitch to Come Here (Remix) I Gotta Say What Up!!! I'm Only Out for One Thang It's a Man's World Jackin' for Beats JD's Gaffilin' (Part 2) Once Upon a Time in the Projects Rollin' wit the Lench Mob The Bomb The Drive-By The Nigga Ya Love to Hate The Product Turn Off the Radio 11、Kill at Will EP [Priority Records] 唱片:Kill at Will EP [Priority Records] 艺人:Ice Cube 地区:欧美 公司:百代音乐 发行:1990年 歌曲列表 Endangered Species (Tales From The Dark Side feat Chuck Jackin' For Beats Get Off My Dick And Tell Yo Bitch To Come Here (Remix) The Product Dead Homiez JD's Gaffilin' (Part 2) I Gotta Say What Up!!!
public var mySkin:GUISkin;
var windowRect = Rect (0, 20, 200 ,150);
var SliderScaleValue:float = 00;
var SliderXValue:float = 00;
var SliderYValue:float = 00;
var SliderZValue:float = 00;
var SliderWindowRect = Rect(80,200,200,150);
var mCube:GameObject;
var xRotation:float;
var yRotation:float;
var zRotation:float;
var wenzi : String;
function Start(){
mCube = GameObjectFind(“Cube”);
//print(mCubetransformlossyScale + ” — ” + mCubetransformlocalScale);
SliderScaleValue = mCubetransformlocalScalex;
}
function Update () {
}
function OnGUI () {
GUIskin = mySkin;
SliderWindowRect = GUIWindow(1,SliderWindowRect,CreateWindow,wenzi);
}
function CreateWindow(windowID : int){
GUIskin = mySkin;
GUILabel(Rect(10,20,50,20),”缩放”);
SliderScaleValue = GUIHorizontalSlider (Rect(60,25,120,20),SliderScaleValue,0,500);
//设置汽车的scale
mCubetransformlocalScale = Vector3(SliderScaleValue,SliderScaleValue,SliderScaleValue);
GUILabel(Rect(10,50,50,20),”旋转X”);
SliderXValue = GUIHorizontalSlider (Rect(60,55,120,20),SliderXValue,0,360);
//设置汽车的xRotation
if(xRotation != SliderXValue){
mCubetransformrotation = QuaternionEuler(SliderXValue,yRotation,zRotation);
xRotation = SliderXValue;
}
GUILabel(Rect(10,80,50,20),”旋转Y”);
SliderYValue = GUIHorizontalSlider (Rect(60,85,120,20),SliderYValue,0,360);
//设置汽车的yRotation
if(yRotation != SliderYValue){
mCubetransformrotation = QuaternionEuler(xRotation,SliderYValue,zRotation);;
yRotation = SliderYValue;
}
GUILabel(Rect(10,110,50,20),”旋转Z”);
SliderZValue = GUIHorizontalSlider (Rect(60,115,120,20),SliderZValue,0,360);
//设置汽车的zRotation
if(zRotation != SliderZValue){
mCubetransformrotation = QuaternionEuler(xRotation,yRotation,SliderZValue);;
zRotation = SliderZValue;
}
GUIDragWindow (Rect (0,0,10000,10000));
}
欢迎分享,转载请注明来源:品搜搜测评网