GameObject.Find注意的问题
【个人笔记】
UGUI遇到的问题。首先项目环境如下:
代码如下:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class BackPack : MonoBehaviour {
private Transform m_Transfrom;
private GameObject m_Item;
//private GameObject abb;
void Start(){
m_Transfrom = GameObject.Find("Grid").GetComponent<Transform>()<