Skip to main content
6 events
when toggle format what by license comment
Jul 5, 2020 at 4:38 vote accept Sabin Pyakurel
Jul 5, 2020 at 4:38 comment added Sabin Pyakurel I got it fixed with both your and kevin's solution.
Jul 4, 2020 at 15:26 comment added DMGregory Have you tried void OnValidate() { correspondingImage = GetComponent<SpriteRenderer>(); } to automatically populate these references at edit time? You can also include error logging here if correspondingImage == null after the assignment attempt, to help you track down which buttons are incorrectly configured.
Jul 4, 2020 at 8:36 comment added Sabin Pyakurel I got this problem even in playmode in unity now. I think I found the problem. Whenever I clicked a button that was not working, it is throwing null reference exception. I don't know why?
Jul 4, 2020 at 6:23 comment added Sabin Pyakurel Thanks man, I didn't realize the problem was the initialization of the corresponding image. But in this solution, you tell me to manually go and drag the corresponding image and that is not possible because there are seventy five corresponding image to drag. Are there any feasible solution to this?
Jul 3, 2020 at 18:09 history answered Kevin CC BY-SA 4.0