当前位置:网站首页>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
边栏推荐
- 怎么判断外盘期货平台正规,资金安全?
- selenium 浏览器(2)
- hexadecimal
- LeetCode 58. 最后一个单词的长度
- LeetCode 35. 搜索插入位置 —vector遍历(O(logn)和O(n)的写法---二分查找法)
- 左右对齐!
- UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
- Go zero micro service practical series (IX. ultimate optimization of seckill performance)
- 大神详解开源 BUFF 增益攻略丨直播
- Introduction to modern control theory + understanding
猜你喜欢

力扣刷题01(反转链表+滑动窗口+LRU缓存机制)

Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?

Flutter reports an error no mediaquery widget ancestor found

Guitar Pro 8win10最新版吉他学习 / 打谱 / 创作

03 storage system

Kubernets pod exists finalizers are always in terminating state

音视频技术开发周刊 | 252

Deep learning neural network case (handwritten digit recognition)

对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?

這幾年爆火的智能物聯網(AIoT),到底前景如何?
随机推荐
MySQL federated primary key_ MySQL creates a federated primary key [easy to understand]
They are all talking about Devops. Do you really understand it?
31年前的Beyond演唱会,是如何超清修复的?
Halcon knowledge: NCC_ Model template matching
数据库函数的用法「建议收藏」
UFO: Microsoft scholars have proposed a unified transformer for visual language representation learning to achieve SOTA performance on multiple multimodal tasks
进制乱炖
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
都在说DevOps,你真正了解它吗?
案例分享|金融业数据运营运维一体化建设
Redis 发布和订阅
中国主要城市人均存款出炉,你达标了吗?
Luo Gu - some interesting questions 2
[Dalian University of technology] information sharing of postgraduate entrance examination and re examination
c# 实现定义一套中间SQL可以跨库执行的SQL语句
Preliminary exploration of flask: WSGI
每周招聘|高级DBA年薪49+,机会越多,成功越近!
Unity脚本生命周期 Day02
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist