当前位置:网站首页>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
边栏推荐
- [learning notes] matroid
- What is the future of the booming intelligent Internet of things (aiot) in recent years?
- Understand the context in go language in an article
- LeetCode 35. 搜索插入位置 —vector遍历(O(logn)和O(n)的写法---二分查找法)
- Implementation of web chat room
- MySQL组合索引(多列索引)使用与优化案例详解
- c# 实现定义一套中间SQL可以跨库执行的SQL语句
- 进制乱炖
- Shell 编程基础
- Go zero micro service practical series (IX. ultimate optimization of seckill performance)
猜你喜欢

Luo Gu - some interesting questions 2

How to handle exceptions in multithreading?

go-zero微服务实战系列(九、极致优化秒杀性能)

What is the future of the booming intelligent Internet of things (aiot) in recent years?

Optimization method of deep learning neural network

近一亿美元失窃,Horizon跨链桥被攻击事件分析

压力、焦虑还是抑郁? 正确诊断再治疗

Numpy notes

Unity脚本常用API Day03

Techsmith Camtasia Studio 2022.0.2屏幕录制软件
随机推荐
Summer Review, we must avoid stepping on these holes!
从0到1建设智能灰度数据体系:以vivo游戏中心为例
Intelligent customer service track: Netease Qiyu and Weier technology play different ways
Redis publish and subscribe
Partial modification - progressive development
力扣刷题01(反转链表+滑动窗口+LRU缓存机制)
这几年爆火的智能物联网(AIoT),到底前景如何?
干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
Redis sentinel mode realizes one master, two slave and three Sentinels
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
CentOS 6.3 下 PHP编译安装JSON模块报错解决
They are all talking about Devops. Do you really understand it?
宽度与对齐
大神详解开源 BUFF 增益攻略丨直播
在芯片高度集成的今天,绝大多数都是CMOS器件
Huawei cloud database DDS products are deeply enabled
夜天之书 #53 Apache 开源社群的“石头汤”
Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!
基于MAX31865的温度控制系统
Techsmith Camtasia Studio 2022.0.2屏幕录制软件