2. Give the Image. SourceImage assignment, to change the Button component of Sprite
3. Click on the "+" under the OnClick, to listen to the game object GameSetting box at the bottom of the drag RuntimeOnly is
4. Select GameSetting hang components in OnSureClick () function as the monitor function
Public void OnSureClick ()
{
The Debug Log (" OnSureClick ");
}
5. Click on the button, there is unity controller output
Problem for a long time trouble the great god

CodePudding user response:
Do you have any add BoxColliderCodePudding user response:
Get this accidentally gone? EventSystemCodePudding user response:
No response to a variety ofThe first: don't exist in the scene EventSystem
Second: the Button on the component Interactable didn't tick
Third: the Image components on the Raycast Target didn't tick
Fourth: if N is the parent of any existing CanvasGroup components, and interactable not tick
Fifth: the Button and the Image object, scope block the Button itself, RaycastTarget still box (less likely)
CodePudding user response:
Supplement, take a look at the Console Console, isn't it will filter the Debug information, what is the Console menu below the Clear, the Collapse of the row of the right, filtering information three buttons