Unity 5.3 is a 2D game. On the stage there are two canvas: one to display the menu, the second to display the interface of the scene. The interface's original canvas is hidden. When you click on the New button, a new game starts, and when you click on Load, a load from save occurs. In both cases, the canvas menu is hidden, and the interface becomes active via SetActive(true); Further, buttons from the interface that depend on the loaded location are created from the prefab. The buttons are bound to the canvas of the interface via btn.transform.SetParent(canvas.transform);
When you start the game, the created buttons appear in the hierarchy and are tied to the canvas, but they are not visible on the scene. If you then exit the menu and load from save or start a new game, the same buttons appear on the scene. What could be the reason for this flicker? And how to make the buttons appear immediately?