Unity C# 找不到图像对象

Unity C# Image object not found

我正在学习如何使用 facebook sdk 登录的教程。 在教程中他做了:

  Image User = UIFBAvatar.GetComponent<Image>();

问题是我找不到对象类型图像。我需要做什么才能将图像类型用作对象?

您需要包括:

using UnityEngine.UI;