回答編集履歴

1

現行バージョンではUIElementsがExperimentalでなくなっているため、リンク先を「current」から「2018.4」に変更

2020/06/01 21:50

投稿

Bongo
Bongo

スコア10807

test CHANGED
@@ -1,3 +1,3 @@
1
- 使うべきなのは[UIElementsのImage](https://docs.unity3d.com/ja/current/ScriptReference/Experimental.UIElements.Image.html)ではなくて[UIのImage](https://docs.unity3d.com/ja/current/ScriptReference/UI.Image.html)じゃないでしょうか?
1
+ 使うべきなのは[UIElementsのImage](https://docs.unity3d.com/ja/2018.4/ScriptReference/Experimental.UIElements.Image.html)ではなくて[UIのImage](https://docs.unity3d.com/ja/2018.4/ScriptReference/UI.Image.html)じゃないでしょうか?
2
2
 
3
3
  スクリプトの頭にある`using UnityEngine.Experimental.UIElements;`を`using UnityEngine.UI;`に変更してみてはいかがでしょう。