版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年信锐技术笔试题库带答案
- 2026年辽宁农信考试模拟试卷(含答案)
- 2026年糖耐量试验试题库及参考答案
- 2026年小学生信息素养大赛测模拟试卷带答案
- YY/T 0493-2026牙科学弹性体印模和咬合记录材料
- (2026)发展对象考试测试题库附参考答案
- 2026客服面试题及参考答案
- T/GDNSA 011-2025成人机械通气雾化吸入技术规范
- 人教版四年级(上)英语1-6单元语法专项训练
- 第6课 人民当家作主 第1课时 课件(内嵌视频)2026-2027学年道德与法治五年级上册统编版
- 药品经营和使用质量监督管理办法培训试题及答案
- 港口陆域形成施工方案
- 食材配送中心仓储管理操作手册
- 《新能源汽车电工电子技术》课程标准
- 中医胆囊结石护理要点说课
评论
0/150
提交评论