通过键盘上↑.↓.←.→实现对物体的控制 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Gary_Text : MonoBehaviour { public Transform WuTi; ; // Use this for initialization void Start () { } // Update is called once per frame
Primitive and Placeholder Objects 原始的基础物体 Unity can work with 3D models of any shape that can be created with modelling software. However, there are also a number of primitive object types that can be created directly within Unity, namely the Cube, S
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class CombineMesh : EditorWindow { [MenuItem("地图/合并Mesh")] static void AddWindow() { //创建窗口 CombineMesh window= (CombineMesh)EditorWindow.Ge
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Rotate : MonoBehaviour { private float origionZ; private Quaternion targetRotation; ; ; private bool i; // Use this for initialization void Start () { origion
using UnityEngine; using System.Collections.Generic; using UnityEngine.EventSystems; using UnityEngine.UI; public class ManualRoam { private static ManualRoam mouse_this; public static ManualRoam Instance() { if (mouse_this == null) { mouse_this = ne