按照之前官方教程【Tutorial: Script Course #4 — Let’s Create a UI】所做的血条后,每次项目试运行时就会输出并报错,
即为[ImageGauge] target object not found. [ res://sampleobject/Object_Sampleplayer.tscn ].
[ImageGauge] target object not found. [ res://sampleobject/Object_Sampleplayer.tscn ].
但是只要一删除血条UI对应的ImageGauge节点,项目运行就恢复正常不报错,但只要恢复那个节点就报错,请问这是什么原因呢?按照教程做对象设置应该也没问题啊,是图中这里设置有问题吗?还是其他什么原因呢?
However, as soon as I delete the ImageGauge node corresponding to the health bar UI, the project runs normally without errors. However, as soon as I restore that node, I get an error. What’s the reason for this? The object settings should be fine according to the tutorial. Is there something wrong with the settings in the image? Or is there something else going on?
しかし、体力バーUIに対応するImageGaugeノードを削除すると、プロジェクトはエラーなく正常に動作します。しかし、そのノードを復元するとすぐにエラーが発生します。原因は何でしょうか?チュートリアルによると、オブジェクトの設定は問題ないはずです。画像の設定に問題があるのでしょうか?それとも、他に何か問題があるのでしょうか?



