当前位置:网站首页>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 ");
}
边栏推荐
- MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP
- AutoCAD - set layer
- 2022 thinking of mathematical modeling D problem of American college students / analysis of 2022 American competition D problem
- Setting up redis cluster cluster under Windows
- 669. Prune binary search tree ●●
- Neural networks and deep learning Chapter 6: Circular neural networks reading questions
- The principle of attention mechanism and its application in seq2seq (bahadanau attention)
- Sqlserver stored procedures pass array parameters
- Autocad-- Real Time zoom
- 775 Div.1 B. integral array mathematics
猜你喜欢

A survey of automatic speech recognition (ASR) research

Matplotlib draws three-dimensional scatter and surface graphs
![[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)

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

Manually implement heap sorting -838 Heap sort

Looking at Chinese science and technology from the Winter Olympics: what is the mystery of the high-speed camera that the whole people thank?

MySQL in-depth learning - index creation and deletion, index design principles, index failure scenarios, query optimization, index push down ICP

JVM 原理和流程简介
![[crampon game] MC tutorial - first day of survival](/img/81/82034c0382f545c39bd8c15f132ec7.jpg)
[crampon game] MC tutorial - first day of survival

AutoCAD - lengthening
随机推荐
Decryption function calculates "task state and lifecycle management" of asynchronous task capability
Introduction to JVM principle and process
AutoCAD - isometric annotation
Solutions and answers for the 2021 Shenzhen cup
PostgreSQL surpasses mysql, and the salary of "the best programming language in the world" is low
Detailed introduction of OSPF header message
AutoCAD - window zoom
Construction d'un Cluster redis sous Windows
Error statuslogger log4j2 could not find a logging implementation
2022 American College Students' mathematical modeling ABCDEF problem thinking /2022 American match ABCDEF problem analysis
[groovy] closure closure (customize closure parameters | customize a single closure parameter | customize multiple closure parameters | specify the default value of closure parameters)
[crampon programming] lintcode decoding Encyclopedia - 1100 strange printer
China needle coke industry development research and investment value report (2022 Edition)
【acwing】528. cheese
Variable category (automatic, static, register, external)
Matplotlib draws three-dimensional scatter and surface graphs
Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
Number theoretic function and its summation to be updated
Raki's notes on reading paper: code and named entity recognition in stackoverflow
Chapter 6 text processing tools for shell programming (awk)