当前位置:网站首页>2.10transfrom attribute
2.10transfrom attribute
2022-07-06 07:50:00 【The ji】
How to get more , You can put transfrom, Understand it as an attribute ( Every object can have attributes )
such as sl = transform.GetChild(0).GetComponent<Slider>(); He is slider In the properties of the . Location . Get components
game.transform.parent = Content.transform;
And he Content“ After acquiring her components , He still wants some transfrom attribute ”
Go and get game Class transfrom attribute , then .parent Properties of

1. Find components through code
2.playerImg.sprite=imgs[0].sprite; He means that one of his attributes is revealed through it ( stay image On )
3.sT.onClick.AddListener(jdbtn); //AddListener== Add method // Code acquisition button Click events for

1. The first 29 OK, he wants to name one using system Space , He gets time ( Or you could write it as System.DateTime.Now.Tostring(), No need to write namespace .)
2.30 OK, he added a name to the random number , Because random numbers are using system and unityEngince meanwhile
There is , So choose one
3.32-34 OK, he just clones an object ( Text ), Give to the Gameobject game, then To get the text , You need to ,game.getcomponent<text>().text . adopt Gameobject Class go , Get his components text.
parent Method represents a subclass of an object , So put the location attribute , Give it to him game Subclasses of classes .
as follows

边栏推荐
- Data governance: misunderstanding sorting
- The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
- How to estimate the number of threads
- If Jerry's Bluetooth device wants to send data to the mobile phone, the mobile phone needs to open the notify channel first [article]
- Epoll and IO multiplexing of redis
- Solution: système de surveillance vidéo intelligent de patrouille sur le chantier
- js對象獲取屬性的方法(.和[]方式)
- MEX有关的学习
- 洛谷P4127 [AHOI2009]同类分布 题解
- Notes on software development
猜你喜欢

Basics of reptile - Scratch reptile
![Ble of Jerry [chapter]](/img/00/27486ad68bf491997d10e387c32dd4.png)
Ble of Jerry [chapter]

23. Update data

Mex related learning

Google may return to the Chinese market after the Spring Festival.
![When the Jericho development board is powered on, you can open the NRF app with your mobile phone [article]](/img/3e/3d5bff87995b4a9fac093a6d9f9473.png)
When the Jericho development board is powered on, you can open the NRF app with your mobile phone [article]

JMeter performance test steps practical tutorial

Description of octomap averagenodecolor function
TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比

Key value judgment in the cycle of TS type gymnastics, as keyword use
随机推荐
Onie supports pice hard disk
TS 类型体操 之 extends,Equal,Alike 使用场景和实现对比
继电反馈PID控制器参数自整定
Common functions for PHP to process strings
Codeforces Global Round 19(A~D)
Database basic commands
Type of data in energy dashboard
Document 2 Feb 12 16:54
opencv学习笔记八--答题卡识别
Leecode-c language implementation -15 Sum of three ----- ideas to be improved
Simulation of Teman green interferometer based on MATLAB
Data governance: 3 characteristics, 4 transcendence and 3 28 principles of master data
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist
Compliance and efficiency, accelerate the digital transformation of pharmaceutical enterprises, and create a new document resource center for pharmaceutical enterprises
ROS learning (IX): referencing custom message types in header files
数据治理:主数据的3特征、4超越和3二八原则
1015 reversible primes (20 points) prime d-ary
Three treasures of leeks and Chinese men's football team
数据治理:误区梳理篇
Google可能在春节后回归中国市场。