当前位置:网站首页>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 ");
}
边栏推荐
- Create a pyGame window with a blue background
- 54. 螺旋矩阵 & 59. 螺旋矩阵 II ●●
- Detailed introduction of OSPF header message
- Matplotlib draws three-dimensional scatter and surface graphs
- Detailed explanation of the ranking of the best universities
- Raki's notes on reading paper: soft gazetteers for low resource named entity recognition
- 中国AS树脂市场调研与投资预测报告(2022版)
- flutter 对象和列表
- Pdf to DWG in CAD
- Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
猜你喜欢

669. 修剪二叉搜索树 ●●
![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]

2022-2028 global and Chinese FPGA prototype system Market Research Report

AutoCAD - lengthening

Autocad-- dynamic zoom

Emlog博客主题模板源码简约好看响应式

Raki's notes on reading paper: code and named entity recognition in stackoverflow

Download the details and sequence of the original data access from the ENA database in EBI
![[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)

2021 Higher Education Club Cup mathematical modeling national tournament ABCD problem - problem solving ideas
随机推荐
#775 Div.1 B. Integral Array 数学
Qt蓝牙:搜索蓝牙设备的类——QBluetoothDeviceDiscoveryAgent
Is $20billion a little less? Cisco is interested in Splunk?
Neural networks and deep learning Chapter 6: Circular neural networks reading questions
2021 higher education social cup mathematical modeling national tournament ABCD questions - problem solving ideas - Mathematical Modeling
【acwing】240. food chain
JVM 原理和流程简介
Introduce Hamming distance and calculation examples
669. Prune binary search tree ●●
猿人学第一题
How much do you know about 3DMAX rendering skills and HDRI light sources? Dry goods sharing
XSS injection
Emlog blog theme template source code simple good-looking responsive
China needle coke industry development research and investment value report (2022 Edition)
2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
Flink集群配置
中国溶聚丁苯橡胶(SSBR)行业研究与预测报告(2022版)
【Leetcode】1352. 最后 K 个数的乘积
2022-2028 global and Chinese FPGA prototype system Market Research Report
Detailed explanation of the ranking of the best universities