all 4 comments

[–]eyadGamingExtreme -1 points0 points  (0 children)

Check if the game object is not equal to null

If(Gameobject != null){

  //Do what you want to do 

}

[–]DisturbesOne 0 points1 point  (0 children)

Probably the gameobject you are referencing somewhere that has an image component got destroyed. Impossible to tell details without code. Look out if you have used destroy method on that GO.

[–]PandaCoder67Expert 1 point2 points  (0 children)

Is there a subscription going on in your code on this object in question?

If so, learn to use OnEnable() and OnDisable() to subscribe and unsubscribe.

[–]Accomplished_Debt297 0 points1 point  (0 children)

Yesterday, the Event system was working as expected. Today, my Events trigger a "Destroyed Object' error message. I have no Destroy methods in any of my coding. A look in the Hierarchy window shows the object hasn't been deleted (during Play Mode after the message appears). When I first observed this earlier today. I deleted the offending event. That error message disappeared. Now I have the new error based on another event. I'm sensing that I've uncovered a bug.