当前位置:网站首页>Unity3d learning notes
Unity3d learning notes
2022-07-05 04:51:00 【shixch】
Specify the location of the object :
using UnityEngine;
public class Box : MonoBehaviour
{
public GameObject first;
// Start is called before the first frame update
void Start()
{
first.transform.position =new Vector3(first.transform.position.x,1.5f,
first.gameObject.transform.position.z);
print("x The coordinates of are :"+first.gameObject.transform.position.x);
print("y The coordinates of are :"+first.gameObject.transform.position.y);
print("z The coordinates of are :"+first.gameObject.transform.position.z);
}
// Update is called once per frame
void Update()
{
}
}
-----
public void tuichu() // Exit app
{
Application.Quit();
}
-----
Create a new one 『 Button 』, Create a new script , Give the script to the button ,
public void Click_test_s() // Prompt window
{
UnityEditor.EditorUtility.DisplayDialog(" title ", " Prompt content ", " confirm ", " Cancel ");
}
边栏推荐
- Construction d'un Cluster redis sous Windows
- AutoCAD -- dimension break
- 49 pictures and 26 questions explain in detail what is WiFi?
- Flink集群配置
- AutoCAD - scaling
- The principle of attention mechanism and its application in seq2seq (bahadanau attention)
- 2022 U.S. college students' mathematical modeling e problem ideas / 2022 U.S. game e problem analysis
- #775 Div.1 B. Integral Array 数学
- An article takes you to thoroughly understand descriptors
- The first topic of ape Anthropology
猜你喜欢
![[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator](/img/cc/06580ce7b553182968d273841a78b4.jpg)
[AI bulletin 20220211] the hard core up owner has built a lidar and detailed AI accelerator
![[groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)](/img/90/0cf08ae6fea61891e3e1fdf29d310c.jpg)
[groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)

数论函数及其求和 待更新

AutoCAD - continuous annotation

【acwing】528. cheese
![[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)](/img/2b/933586b6feff1d48c5bee11cd734ba.jpg)
[PCL self study: feature9] global aligned spatial distribution (GASD) descriptor (continuously updated)
![Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]](/img/e7/f699ee982ea325b8d04f8bd467a559.jpg)
Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]

Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9

PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low

AutoCAD - scaling
随机推荐
Flutter tips: various fancy nesting of listview and pageview
JMeter -- distributed pressure measurement
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
"Measuring curve length" of CAD dream drawing
2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem
The remainder operation is a hash function
The principle of attention mechanism and its application in seq2seq (bahadanau attention)
AutoCAD -- dimension break
Research and investment forecast report of adamantane industry in China (2022 Edition)
Function overloading
中国针状焦行业发展研究与投资价值报告(2022版)
XSS injection
#775 Div.1 C. Tyler and Strings 组合数学
[groovy] closure (closure parameter binding | curry function | rcurry function | ncurry function | code example)
JVM 原理和流程简介
AutoCAD - isometric annotation
AutoCAD - set layer
2022-2028 global and Chinese equipment as a Service Market Research Report
flutter 对象和列表
Forecast report on research and investment prospects of Chinese wormwood industry (2022 Edition)