翻译的英文原文.docx

上传人:b****6 文档编号:14230390 上传时间:2023-06-21 格式:DOCX 页数:11 大小:285.97KB
下载 相关 举报
翻译的英文原文.docx_第1页
第1页 / 共11页
翻译的英文原文.docx_第2页
第2页 / 共11页
翻译的英文原文.docx_第3页
第3页 / 共11页
翻译的英文原文.docx_第4页
第4页 / 共11页
翻译的英文原文.docx_第5页
第5页 / 共11页
翻译的英文原文.docx_第6页
第6页 / 共11页
翻译的英文原文.docx_第7页
第7页 / 共11页
翻译的英文原文.docx_第8页
第8页 / 共11页
翻译的英文原文.docx_第9页
第9页 / 共11页
翻译的英文原文.docx_第10页
第10页 / 共11页
翻译的英文原文.docx_第11页
第11页 / 共11页
亲,该文档总共11页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

翻译的英文原文.docx

《翻译的英文原文.docx》由会员分享,可在线阅读,更多相关《翻译的英文原文.docx(11页珍藏版)》请在冰点文库上搜索。

翻译的英文原文.docx

翻译的英文原文

本科毕业论文(设计)

英文文献中文翻译

 

文献中文题目Unity指南

学生姓名

学号

所在学院

专业

班级

指导教师

2013年12月

成都信息工程学院计算机学院

Unity指南

Unity团队

UnityManual

UnityTeam

WelcometoUnity.

Unityismadetoempoweryoutocreatethebestinteractiveentertainmentormultimediaexperiencethatyoucan.ThismanualisdesignedtohelpyoulearnhowtouseUnity,frombasictoadvancedtechniques.Itcanbereadfromstarttofinishorusedasareference.

Themanualisdividedintodifferentsections.Thefirstsection,UserGuide,isanintroductiontoUnity'sinterface,assetworkflow,andthebasicsofbuildingagame.IfyouarenewtoUnity,youshouldstartbyreadingtheUnityBasicssubsection.

Thenextsection,FAQ,isacollectionoffrequentlyaskedquestionsaboutperformingcommontasksthatrequireafewsteps.

Thelastsection,Advanced,addressestopicssuchasgameoptimization,shaders,filesizes,anddeployment.

Whenyou'vefinishedreading,takealookattheReferenceManualandtheScriptingReferenceforfurtherdetailsaboutthedifferentpossibilitiesofconstructingyourgameswithUnity.

IfyoufindthatanyquestionyouhaveisnotansweredinthismanualpleaseaskonUnityAnswersorUnityForums.Youwillbeabletofindyouranswerthere.

TheUnityManualGuidecontainssomesectionsthatapplyonlytocertainplatforms.Pleaseselectwhichplatformsyouwanttosee.Platform-specificinformationcanalwaysbeseenbyclickingonthedisclosuretrianglesoneachpage.

GameObjects

GameObjectsarethemostimportantobjectsinUnity.ItisveryimportanttounderstandwhataGameObjectis,andhowitcanbeused.Thispagewillexplainallthatforyou.

WhatareGameObjects?

EveryobjectinyourgameisaGameObject.However,GameObjectsdon'tdoanythingontheirown.Theyneedspecialpropertiesbeforetheycanbecomeacharacter,anenvironment,oraspecialeffect.Buteveryoneoftheseobjectsdoessomanydifferentthings.IfeveryobjectisaGameObject,howdowedifferentiateaninteractivepower-upobjectfromastaticroom?

WhatmakestheseGameObjectsdifferentfromeachother?

TheanswertothisquestionisthatGameObjectsarecontainers.Theyareemptyboxeswhichcanholdthedifferentpiecesthatmakeupalightmappedislandoraphysics-drivencar.SotoreallyunderstandGameObjects,youhavetounderstandthesepieces;theyarecalledComponents.Dependingonwhatkindofobjectyouwanttocreate,youwilladddifferentcombinationsofComponentstotheGameObject.ThinkofaGameObjectasanemptycookingpot,andComponentsasdifferentingredientsthatmakeupyourrecipeofgameplay.YoucanalsomakeyourownComponentsusingScripts.

YoucanreadmoreaboutGameObjects,Components,andScriptComponentsonthepagesinthissection:

∙TheGameObject-ComponentRelationship

∙UsingComponents

∙TheComponent-ScriptRelationship

∙DeactivatingGameObjects

TheGameObject-ComponentRelationship

AsdescribedpreviouslyinGameObjects,aGameObjectcontainsComponents.We'llexplorethisrelationshipbydiscussingaGameObjectanditsmostcommonComponent--theTransformComponent.WithanyUnitySceneopen,createanewGameObject(usingShift-Control-NonWindowsorShift-Command-NonMac),selectitandtakealookattheInspector.

TheInspectorofanEmptyGameObject

NoticethatanemptyGameObjectstillcontainsaName,aTag,andaLayer.EveryGameObjectalsocontainsaTransformComponent.

TheTransformComponent

ItisimpossibletocreateaGameObjectinUnitywithoutaTransformComponent.TheTransformComponentisoneofthemostimportantComponents,sincealloftheGameObject'sTransformpropertiesareenabledbyitsuseofthisComponent.ItdefinestheGameObject'sposition,rotation,andscaleinthegameworld/SceneView.IfaGameObjectdidnothaveaTransformComponent,itwouldbenothingmorethansomeinformationinthecomputer'smemory.Iteffectivelywouldnotexistintheworld.

TheTransformComponentalsoenablesaconceptcalledParenting,whichisutilizedthroughtheUnityEditorandisacriticalpartofworkingwithGameObjects.TolearnmoreabouttheTransformComponentandParenting,readtheTransformComponentReferencepage.

OtherComponents

TheTransformComponentiscriticaltoallGameObjects,soeachGameObjecthasone.ButGameObjectscancontainotherComponentsaswell.

TheMainCamera,addedtoeachscenebydefault

LookingattheMainCameraGameObject,youcanseethatitcontainsadifferentcollectionofComponents.Specifically,aCameraComponent,aGUILayer,aFlareLayer,andanAudioListener.AlloftheseComponentsprovideadditionalfunctionalitytotheGameObject.Withoutthem,therewouldbenothingrenderingthegraphicsofthegameforthepersonplaying!

Rigidbodies,Colliders,Particles,andAudioarealldifferentComponents(orcombinationsofComponents)thatcanbeaddedtoanygivenGameObject.

UsingComponents

Componentsarethenuts&boltsofobjectsandbehaviorsinagame.TheyarethefunctionalpiecesofeveryGameObject.Ifyoudon'tyetunderstandtherelationshipbetweenComponentsandGameObjects,readtheGameObjectspagebeforegoinganyfurther.

AGameObjectisacontainerformanydifferentComponents.Bydefault,allGameObjectsautomaticallyhaveaTransformComponent.ThisisbecausetheTransformdictateswheretheGameObjectislocated,andhowitisrotatedandscaled.WithoutaTransformComponent,theGameObjectwouldn'thavealocationintheworld.TrycreatinganemptyGameObjectnowasanexample.ClicktheGameObject->CreateEmptymenuitem.SelectthenewGameObject,andlookattheInspector.

EvenemptyGameObjectshaveaTransformComponent

RememberthatyoucanalwaysusetheInspectortoseewhichComponentsareattachedtotheselectedGameObject.AsComponentsareaddedandremoved,theInspectorwillalwaysshowyouwhichonesarecurrentlyattached.YouwillusetheInspectortochangeallthepropertiesofanyComponent(includingscripts)

AddingComponents

YoucanaddComponentstotheselectedGameObjectthroughtheComponentsmenu.We'lltrythisnowbyaddingaRigidbodytotheemptyGameObjectwejustcreated.SelectitandchooseComponent->Physics->Rigidbodyfromthemenu.Whenyoudo,youwillseetheRigidbody'spropertiesappearintheInspector.IfyoupressPlaywhiletheemptyGameObjectisstillselected,youmightgetalittlesurprise.TryitandnoticehowtheRigidbodyhasaddedfunctionalitytotheotherwiseemptyGameObject.(They-componentoftheGameObjectstartstodecrease.ThisisbecausethephysicsengineinUnityiscausingtheGameObjecttofallundergravity.)

AnemptyGameObjectwithaRigidbodyComponentattached

AnotheroptionistousetheComponentBrowser,whichcanbeactivatedwiththeAddComponentbuttonintheobject'sInspector.

Thebrowserletsyounavigatethecomponentsconvenientlybycategoryandalsohasasearchboxthatyoucanusetolocatecomponentsbyname.

YoucanattachanynumberorcombinationofComponentstoasingleGameObject.SomeComponentsworkbestincombinationwithothers.Forexample,theRigidbodyworkswithanyCollider.TheRigidbodycontrolstheTransformthroughtheNVIDIAPhysXphysicsengine,andtheColliderallowstheRigidbodytocollideandinteractwithotherColliders.

IfyouwanttoknowmoreaboutusingaparticularComponent,youcanreadaboutanyofthemintheComponentReference.YoucanalsoaccessthereferencepageforaComponentfromUnitybyclickingonthesmall?

ontheComponent'sheaderintheInspector.

EditingComponents

OneofthegreataspectsofComponentsisflexibility.WhenyouattachaComponenttoaGameObject,therearedifferentvaluesorPropertiesintheComponentthatcanbeadjustedintheeditorwhilebuildingagame,orbyscriptswhenrunningthegame.TherearetwomaintypesofProperties:

ValuesandReferences.

Lookattheimagebelow.ItisanemptyGameObjectwithanAudioSourceComponent.AllthevaluesoftheAudioSourceintheInspectorarethedefaultvalues.

ThisComponentcontainsasingleReferenceproperty,andsevenValueproperties.AudioClipistheReferenceproperty.WhenthisAudioSourcebeginsplaying,itwillattempttoplaytheaudiofilethatisreferencedintheAudioClipproperty.Ifnoreferenceismade,anerrorwilloccurbecausethereisnoaudiotobeplayed.YoumustreferencethefilewithintheInspector.ThisisaseasyasdragginganaudiofilefromtheProjectViewontotheReferencePropertyorusingtheObjectSelector.

NowasoundeffectfileisreferencedintheAudioClipproperty

ComponentscanincludereferencestoanyothertypeofComponent,GameObjects,orAssets.YoucanreadmoreaboutassigningreferencesontheAssigningReferencespage.

TheremainingpropertiesontheAudioClipareallValueproperties.ThesecanbeadjusteddirectlyintheInspector.TheValuepropertiesontheAudioCliparealltoggles,numericvalues,drop-downfields,butvaluepropertiescanalsobetextstrings,colors,curves,andothertypes.YoucanreadmoreabouttheseandabouteditingvaluepropertiesontheEditingValuePropertiespage.

CopyingandpastingComponentsettings

ThecontextmenuforaComponenthasitemsforcopyingandpastingitssettings.

ThecopiedvaluescanbepastedtoanexistingcomponentusingthePasteComponentValuesmenuitem.Alternatively,youcanusePasteComponentAsNewtocreateanewComponentwiththosevalues.

TestingoutProperties

WhileyourgameisinPlayMode,youarefreetochangepropertiesinanyGameObject'sInspector.Forexample,youmightwanttoexperimentwithdifferentheightsofjumping.IfyoucreateaJumpHeightpropertyinascript,youcanenterPlayMode,changet

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > PPT模板 > 其它模板

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2