![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
unity
文章平均质量分 72
logoai
这个作者很懒,什么都没留下…
展开
-
【Unity】 GetComponent 2020/11/26 小雨
挂在Cube上 using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 获取组件 /// </summary> public class Cube_GetComponent : MonoBehaviour { //定义一个游戏对象 private GameObject cubeObject; // 定义一个组件Mes.原创 2020-11-26 22:10:47 · 170 阅读 · 0 评论 -
【Unity】GameObject.FindWithTag 2020/11/25 小雨
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 通过标签查找对象 /// </summary> public class GameObject_FindWithTag : MonoBehaviour { // 定义对象 private GameObject cubeObject; private Game...原创 2020-11-25 22:36:15 · 1253 阅读 · 0 评论 -
【Unity】GameObject中的Find 2020/11/25 小雨
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// 游戏对象的类 /// 场景中所有的对象 /// </summary> /// public class CubeGameObject : MonoBehaviour { // 定义一个对象变量,用于保存对象 public GameObject cubeGameObjec原创 2020-11-25 22:10:31 · 195 阅读 · 0 评论 -
【Unity】 Transform 2020/11/24 小雨
在Unity中用Transform控制物体的旋转 using System.Collections; using System.Collections.Generic; using UnityEngine; public class CubeTransform : MonoBehaviour { // 坐标 public float x = 0.0f; public float y = 0.0f; public float z = 0.0f; // 添加一个 Transfor原创 2020-11-24 22:46:02 · 96 阅读 · 0 评论