当前位置:网站首页>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
边栏推荐
猜你喜欢
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
Redis 解决事务冲突之乐观锁和悲观锁
近一亿美元失窃,Horizon跨链桥被攻击事件分析
每周招聘|高级DBA年薪49+,机会越多,成功越近!
Unity脚本常用API Day03
Introduction to modern control theory + understanding
Techsmith Camtasia Studio 2022.0.2屏幕录制软件
暑期复习,一定要避免踩这些坑!
Helix swarm Chinese package is released, and perforce further improves the user experience in China
【大连理工大学】考研初试复试资料分享
随机推荐
Ffprobe common commands
深入JS中几种数据类型的解构赋值细节
flutter 报错 No MediaQuery widget ancestor found.
go-zero微服务实战系列(九、极致优化秒杀性能)
Is BigDecimal safe to calculate the amount? Look at these five pits~~
Summer Review, we must avoid stepping on these holes!
Redis 解决事务冲突之乐观锁和悲观锁
Introduction to modern control theory + understanding
CentOS 6.3 下 PHP编译安装JSON模块报错解决
Shell programming basics
Width accuracy
Unity脚本API—Component组件
Hexadecimal form
%f格式符
Data Lake Governance: advantages, challenges and entry
怎么判断外盘期货平台正规,资金安全?
暑期复习,一定要避免踩这些坑!
%s格式符
Align left and right!
Kubernets pod exists finalizers are always in terminating state