当前位置:网站首页>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
边栏推荐
- Shell programming basics
- Halcon knowledge: NCC_ Model template matching
- Deep learning neural network case (handwritten digit recognition)
- .Net 应用考虑x64生成
- How did the beyond concert 31 years ago get super clean and repaired?
- Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance
- C1 certification learning notes 3 -- Web Foundation
- Numpy notes
- AI has surpassed Dr. CS in question making?
- 【大连理工大学】考研初试复试资料分享
猜你喜欢

Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist

在芯片高度集成的今天,绝大多数都是CMOS器件

lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04

微博、虎牙挺进兴趣社区:同行不同路

Kubernets pod exists finalizers are always in terminating state

MySQL学习笔记——数据类型(数值类型)

从0到1建设智能灰度数据体系:以vivo游戏中心为例

03 storage system

The per capita savings of major cities in China have been released. Have you reached the standard?

近一亿美元失窃,Horizon跨链桥被攻击事件分析
随机推荐
How to rapidly deploy application software under SaaS
Unity脚本介绍 Day01
LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
基于MAX31865的温度控制系统
MP3是如何诞生的?
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
Preliminary exploration of flask: WSGI
案例分享|金融业数据运营运维一体化建设
深度学习 神经网络案例(手写数字识别)
Unity脚本API—GameObject游戏对象、Object 对象
Unity脚本API—Transform 变换
一篇文章学会GO语言中的变量
十六进制
[learning notes] matroid
宽度精度
%f格式符
Data Lake Governance: advantages, challenges and entry
Hexadecimal form
MySQL学习笔记——数据类型(2)
Redis 解决事务冲突之乐观锁和悲观锁