当前位置:网站首页>Common API day03 of unity script
Common API day03 of unity script
2022-07-04 15:22:00 【@Night Charm】
Commonly used API:Component、Transform、GameObject、Object、Time
1、API(Application Programming Interface): Application programming interface , Are some predefined functions .
2、Unity The engine provides rich components and class libraries , It provides great convenience for developers , Master and use these API It is very important to improve the efficiency of game development .
Component:
Common properties :gameObject、transform、collider、renderer......
Common methods :GetComponent、GetComponentInChildren、GetComponentInParent......
Transfrom:
Common properties :position、localPosition、parent、forward......
Common methods :Translate、Rotate、TransformPoint、Find、SetSiblingIndex......
GameObject:
Common properties :transform、activeInHierarchy、activeSelf、tag......
Common methods :AddComponent、Find、FindGameObjectsWithTag、Object.FindObjectOfType......
Object:
Common properties :name......
Common methods :Instantiate、Destroy、FindObjectOfType、FindObjectsOfType......
Time class :
1、 from Unity Interface for obtaining time information
2、 Common properties :
time: The time taken from the beginning of the game to the present
timeScale: Time scaling
deltaTime: In seconds , Represents the elapsed time of each frame
unscaledDeltaTime: Elapsed time per frame unaffected by scaling
边栏推荐
- LeetCode 1184. 公交站间的距离 ---vector顺逆时针
- js平铺数据查找叶子节点
- . Net applications consider x64 generation
- 【学习笔记】拟阵
- 怎么判断外盘期货平台正规,资金安全?
- 小数,指数
- Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
- I plan to teach myself some programming and want to work as a part-time programmer. I want to ask which programmer has a simple part-time platform list and doesn't investigate the degree of the receiv
- 深入JS中几种数据类型的解构赋值细节
- 数据湖治理:优势、挑战和入门
猜你喜欢
都在说DevOps,你真正了解它吗?
Deep learning network regularization
Optimization method of deep learning neural network
Quick introduction to automatic control principle + understanding
lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
TechSmith Camtasia studio 2022.0.2 screen recording software
在芯片高度集成的今天,绝大多数都是CMOS器件
Luo Gu - some interesting questions
When synchronized encounters this thing, there is a big hole, pay attention!
随机推荐
Quick introduction to automatic control principle + understanding
文本挖掘工具的介绍[通俗易懂]
odoo数据库主控密码采用什么加密算法?
Enter the width!
Summer Review, we must avoid stepping on these holes!
Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!
The per capita savings of major cities in China have been released. Have you reached the standard?
Implementation of web chat room
都在说DevOps,你真正了解它吗?
LeetCode 58. Length of the last word
What is the future of the booming intelligent Internet of things (aiot) in recent years?
数据湖治理:优势、挑战和入门
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
Optimization method of deep learning neural network
基于MAX31865的温度控制系统
暑期复习,一定要避免踩这些坑!
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
Redis 發布和訂閱
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
[differential privacy and data adaptability] differential privacy code implementation series (XIV)