版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
GameenginesOpensource….Delta3D,Panda3DWithoutpowerfulvisualEditor,orleveleditor…RelyonintensiveC++orPythoncoding…WhatisUnity3DUnityisAgameengineandecosystemSupportsmoreplatformsthananyotherpublicallyavailabletoolUsedbyhobbyists&students,uptomajorstudiosUnityisnotA2Dimageorvectorgraphiccreationtool(photoshop,gimp)A3Dmodellingenvironment*ItdoeshaveabuiltinterrainsystemAlsosupportsthirdpartypluginsthatenablesome3Dmodelling(ProBuilder)Features/CapabilitiesAAAGameQuality(Triple–A,高成本、高体量、高质量)--AAA+Editorforscene(level)assembly&in-editorgameplayPhysicsProgrammingwithC#,JavaScript,Boo2D&3DSupportAudioParticleEffectsAnimationSystemsAssetStoreNeareverythingyouneedforagameInstallationUnity3Disacommercialgameengine.Thereisastudentversionavailable.Refertoonlinetutorialsfortheinstallation.StartUnity3DHowtocreateanewproject?Unity’sArchitectureMajorComponentsEditorMonoDevelopGameEngineEditorCanplaytestgame(playmode)CanextendeasilyProjectStructure(seethefolds)AssetsAlwaystoplevelfoldershowninUnityEditorEveryfileyoubringintoyourproject,prefabs,art,audio,andmore.LibraryLocalcacheforimportedassets&metadataforassets.ProjectSettingsStoressettingsfromEdit->ProjectSettingsTemp/ObjUsedfortemporaryfilesduringthebuildprocessfromMonoandUnitySceneGameSceneEditorSceneViewGameViewHierarchyView(层级视图)Inspector(检视视图)Projectpanel(项目视图)consoleSceneViewvisuallybuildyourgamefromtheenvironmentonuptopositioninggameobjects.Drag&Drop工具栏TransformToolsQ:手型工具,左键平移场景ALT+左键旋转场景
ALT+右键缩放场景W:移动工具E:旋转工具R:缩放工具选中场景中的物体时…..GameViewcontrolbarofGameViewStats:activatesadisplayofperformancestatisticsFreeAspect:thescreenproportions….HierarchyViewFindaobjectinasceneTypethenameofobjectin“searchfield”ofHierarchyViewClickthenameintheHierarchylistplaceyourmousecursorovertheSceneviewandpresstheFkeyorjustdoubleclickthename,topushtheobjectforwardtoyourfront.InspectorSelectanobjectTherightpanelistheInspectorcorrespondingtothisobjectTheInspectorisusedtoeditthepropertiesofthisobject.Seethescreensnapshotasthefollowingpage:ProjectPanelProjectPanelstoreAlloftheassetsthatmakeupyourgame.Consoledisplaysoutputfromyourgameduringthedevelopmentprocesssuchasmessages,warnings,anderrors.菜单栏File:项目的Buildsettings其他菜单栏,逐步介绍….GameandcomponentsGameobjectPleasenote:gameobjectsarebuiltupasacollectionofcomponents,andthatcollectioncanincludecodestoexecute.Addagameobject:rightclick“Untitled”-
ContentsofaninspectorThefirstcheckbox,activeornot,….RenameagameobjectTagsareusedtoidentifygroupsofgameobjects,suchasplayersorenemies.Layersarealsousedtogroupobjects,butforotherpurposessuchasraycasting,lighting,andrendering.TheStaticcheckboxshouldbecheckedforenvironmentobjectsthatwillnotbemovingaroundinthescene.componentsThetruepoweroftheUnitygameengineisinitscomponents,whichcontrolthelook,behavior,andinteractionofthegameobjects.Pleasecheckthebuilt-incomponents,inthemainmenu,orclickthe“addcomponent”intheInspectorpanel.3DCoordinatesXispointedtoright,YtoupZdependsonLeft-handandright-handsystemsCreateanemptyobjectAddcomponent(script)toaGameObject:Twoways
CreateaGameObjectIntheInspectoroftheGameObject,clickthe“AddComponent”-newscript-inputname--create&addAnotherwayIntheprojectUsethe“create”menuChoose“C#Script”Intheassets,anewfilewithC#language,giveaspecificnameforthisfileDragthisfileontoaGameObjectinthe“hierarchyViewpanel”.visualinformationinagameArtassets(要素、内容、或资产)inUnityTypesofartassetsImageModel,meshobjectMaterial:definesthesurfacepropertiesofany3Dobjectthatthematerialisattachedto.Animation:definesmovementoftheassociatedobject.Particlesystem:createandcontrollargenumberofmovingobjects.
Importmodels右键点击Assets,出现importnewasset按钮WritecodesandrunAdd“Debug.log(“helloworld”);”intheupdatefunction.Savethescript.BacktotheGameView,andclickthe“play”.Youwillseetheoutputintheconsole.Trytoaddthescriptcodeonceagaintothegameobject,andobservetheresult.Howtoremovescriptfora
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- (新)手术室医院感染管理工作计划
- 2026年广告评估冷链运输合同
- 2026年保险运营跨境物流服务协议
- 2026年钢铁检测系统集成协议
- 村居联防联治工作制度
- 村残疾人协会工作制度
- 预防犯罪五项工作制度
- 领导带班值班工作制度
- 鸭苗放养人员工作制度
- 肇庆市广宁县2025-2026学年第二学期三年级语文第七单元测试卷(部编版含答案)
- JG/T 503-2016承插型盘扣式钢管支架构件
- DZ/T 0275.4-2015岩矿鉴定技术规范第4部分:岩石薄片鉴定
- 2025至2030中国登机箱行业发展现状及经营效益研究报告
- 脑血管病的饮食指导
- 创伤救护-止血、包扎、固定、搬运课件
- 2024年华夏银行股份有限公司校园招聘考试试题完整
- 《陆上风电场工程概算定额》NBT 31010-2019
- DZ∕T 0142-2010 航空磁测技术规范(正式版)
- 二次安全措施票培训
- 残疾学生送教上门备课、教案
- 口腔前台接诊流程和话术培训
评论
0/150
提交评论