Hey, I have this annoying problem that’s driving me nuts and I cant find any solution to it. I want to Instantiate an UI Image prefab via script. I have a public Image variable that I set in inspector, and when I try to Instantiate this I get “The object you want to instantiate is null”. It’s funny, because I can instantiate an UI Button prefab the same way I want to instantiate the image.
line 70 is working perfectly, while line 71 is throwing that error.
Any help will be appreciated, thanks