当前位置:网站首页>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

边栏推荐
- Database basic commands
- PHP Coding Standard
- JMeter performance test steps practical tutorial
- opencv学习笔记八--答题卡识别
- Relevant introduction of clip image
- [window] when the Microsoft Store is deleted locally, how to reinstall it in three steps
- [factorial inverse], [linear inverse], [combinatorial counting] Niu Mei's mathematical problems
- Notes on software development
- opencv学习笔记九--背景建模+光流估计
- Iterator Foundation
猜你喜欢

Google可能在春节后回归中国市场。

软件测试界的三无简历,企业拿什么来招聘你,石沉大海的简历

Opencv learning notes 8 -- answer sheet recognition

How to prevent Association in cross-border e-commerce multi account operations?
![DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist](/img/17/415e66d67afb055e94a966de25c2bc.png)
DataX self check error /datax/plugin/reader/_ drdsreader/plugin. Json] does not exist

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

Esrally domestic installation and use pit avoidance Guide - the latest in the whole network

MEX有关的学习

数字经济时代,如何保障安全?

【Redis】NoSQL数据库和redis简介
随机推荐
Inspiration from the recruitment of bioinformatics analysts in the Department of laboratory medicine, Zhujiang Hospital, Southern Medical University
洛谷P4127 [AHOI2009]同类分布 题解
861. Score after flipping the matrix
P3047 [usaco12feb]nearby cows g (tree DP)
Jerry's ad series MIDI function description [chapter]
datax自检报错 /datax/plugin/reader/._drdsreader/plugin.json]不存在
Ble of Jerry [chapter]
Solution: intelligent site intelligent inspection scheme video monitoring system
Ble of Jerry [chapter]
shu mei pai
opencv学习笔记九--背景建模+光流估计
Database basic commands
Fundamentals of C language 9: Functions
Mex related learning
[KMP] template
HTTP cache, forced cache, negotiated cache
Ble of Jerry [chapter]
Epoll and IO multiplexing of redis
数据治理:数据质量篇
Scala语言学习-08-抽象类