📜  unity c# image invisible - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:21.179000             🧑  作者: Mango

代码示例1
using UnityEngine;
 using UnityEngine.UI;
 
 public class ImageIvisible : MonoBehaviour {
     private Image img;
     void Start () {
         img = GetComponent();
        img.enabled = false;
     }
 }