当前位置:网站首页>2022-04-18 introduction to unity 2 - how unity works
2022-04-18 introduction to unity 2 - how unity works
2022-07-18 02:30:00 【Sugarcane causes bitterness】
List of articles
One 、 The toolbar
- File operations : New project , New scene , Project packaging, etc
- Edit operation : Object editing operations , Engineering setup , Engine settings
- Resource operations : It's basically the same as Project Right click relevant functions in the window
- The object operation : It's basically the same as Hierarchy Right click relevant functions in the window
- Script operation :Unity The script that comes with it , You can add scripts in each system
- window : Can open Unity Windows of each core system
- help : Check for updates , Version view function, etc
( One )File

( Two )Edit


File Important options in :
BuildSetting( Project release and packaging )
Edit Important options in :
Project Setting( System settings of the project )
Preferences( Preferences , Programming software can be set )
GameObject Important options in :
MoveToView、Align With View、Align View to Selected( Several functions of quick setting location )
Two 、 Father and son
The child object changes as the parent object changes
Sub object Inspector Window Transform Information is relative to the parent object
Scene The role of the top
- Pivot Will identify their own coordinates

- Center It will identify the central coordinates of itself and its sub objects

3、 ... and 、 The reflex mechanism
( One ) The nature of the objects in the scene
GameObject Class object is Unity The engine provides us with , As the foundation of all objects in the scene
An object appears in the game scene , Whether it's pictures 、 Model 、 Sound effect 、 Cameras and so on are attached to GameObject Object's
GameObject The object appears on the stage as a (3D scene ) The actor in , There must be a message indicating your location
Transform Is an essential script , Its essence is to send a script indicating the position to the actors
( It's equivalent to using a Transform Class objects and GameObject Class object )
( Two ) The reflex mechanism
except Transform This is outside the standard script representing the position , We can work for this actor (GameObject) Relate various scripts (C# Script ), Let it follow our script ( In code logic ) Order to deal with things
And the process of adding scripts for actors , Is using reflection new A new script object and actor (GameObject) Object to associate , Let them do what we ordered . for example ,
modify Inspector The palette Transform The content of
Using the reflection : Known objects , Class name , Variable name , Set the variable value for the object by reflection
After creating a new script , Add to a specified GameObject object
Using the reflection : Known class name , You can get all public members , So it can be in Inspector Create public field information on the panel
Four 、 Game scenario
The suffix of the game scene file is .unity
Its essence is a configuration file
Unity There is a mechanism to identify and deal with it
But the essence is to read out the relevant information of scene objects , Create objects by reflection and associate script objects
open .unity file , Get the following information :


It can be seen that ,.unity The file stores all the configuration information in the scene .
边栏推荐
- Solve the problem of installing Oracle /usr/bin/ld: cannot find -lclntshcore
- STM32与物联网02-网络数据收发
- 可落地的DDD(7)-战术设计上的一些误区
- Single vehicle management system - 1 Document design and SQL code description
- 第8章 委托、lambda表达式和事件
- 558. 四叉树交集 : 简单递归运用题
- 如何在项目中封装 Kotlin + Android Databinding
- 职场大咖带你助攻面试求职+职业发展
- three. JS infinite running VR games
- 【计算机三级信息安全】时间节点记忆考题
猜你喜欢

云呐-动环监控水浸绳,非定位水浸监测绳

2022-04-21 Unity入门8——音效系统

一图看懂:国企数字化转型4个方向3个战略

Deep understanding and recognition of C language symbols

【毕设选题】基于STM32的毕业设计题目项目汇总 - 350例

开源实时数仓 Apache Doris 毕业了,未来如何走得更远?
![[recruitment] 2022 Xiangguang award annual ESG influence investment award is officially launched!](/img/11/64ad076cee870bd1aa42a6691ad841.jpg)
[recruitment] 2022 Xiangguang award annual ESG influence investment award is officially launched!

558. 四叉树交集 : 简单递归运用题

如何选择合适的自动化测试工具?
![[comprehensive pen test] difficulty 2/5, recursive application, prefix and optimization](/img/eb/fad095522129d13be7675a50e77af7.png)
[comprehensive pen test] difficulty 2/5, recursive application, prefix and optimization
随机推荐
【综合笔试题】难度 2/5,递归运用及前缀和优化
配置Sublime的C语言环境
Solve the problem of installing Oracle /usr/bin/ld: cannot find -lclntshcore
three.js无限跑动VR小游戏
[英雄星球七月集训LeetCode解题日报] 第15日 二叉树
云呐-机房动环监控扩容方案
[hero planet July training leetcode problem solving daily] 15th binary tree
Learn FPGA from the bottom structure --- MMCM and PLL
558. 四叉樹交集 : 簡單遞歸運用題
竟然如此简单,DataBinding 和 ViewBinding
Latex mathematical formula
Heap sort
许式伟:Go+ 演进之路
单车管理系统——1.文档设计及sql代码说明
实验2.售后服务管理系统数据建模
可落地的DDD(7)-战术设计上的一些误区
Iqiyi joins dragon dragon community to build a diversified video ecological base together
Dragon lizard community recruitment Promotion Ambassador & experience officer| Everyone can participate in open source
【毕设选题】基于C51单片机的毕业设计题目项目汇总 - 500例
职场大咖带你助攻面试求职+职业发展