I have Button Prefab. It's OnClick attached to EventSystem Prefab and select method called ( doIt ).
This method (doIt) print message and enable panel called ( Panel).
public void doIt()
{
print("Doing !!!");
helpCanvas.SetActive(true);
}
EventSystem Prefab has script which has method ( doIt ) and gameObject ( Button ) already attached to it
Panel Prefab is inactive
I draged these Prefab ( Button, EventSystem and Panel ) in some scenes (about 17 scenes) like this.
The problem is: When i play the game there is nothing happen when i click button
, but the panel become enabled just after i stop the game
Note:
This happened only when the SystemEvent instance depend on prefab , but if i draged the panel manually from the scene
and the SystemEvent instance to the OnClick this not happened

Why this happened ? and how to solve that ? It doesn't suit me or to any one to reattach the Button OnClick EventSystem Manually for all buttons which has the same function. Or to attach Panel instance to each EventSystem Instance.





