我的项目内容是,unity通过grpc接收数据,接收到的有图片和数字,unity卡死后,我再打开运行就会报错ArgumentNullException: Value cannot be null. Parameter name: tex。这个报错就会导致我的图片没法显示在rawimage上。一模一样的场景和代码,在卡死重启后就会报这个错误。一开始尝试重启大法,也不好使。
最终发现,需要把我的video_updater.cs脚本(这个脚本主要是用来更新rawimage)先在inspector面板上remove,再重新拖拽进来就好了。