Skip to main content
Added images, added more detail, etc.
Source Link
OKprogrammer
  • 522
  • 1
  • 7
  • 20

I have been working on a UI Inventory System for my Unity game and for some reason, none of my buttons work in my game. All the buttons have the ‘interact-able’ box ticked and an EventSystemEventSystem which is in the scene. In my scene, I have an image, which is holding two buttons, in a canvas. The buttons are supposed initiate a function called UseItem when clicked, but they don't respond to anything. I have tested them using Debug.Log, but I don't get any messages back in the Console. I also don't get any errors or warnings in the Console. I am using Unity 2019.4.17f1 LTS. The pictures below show my UI.

Here's a picture of my game scene:

Here's the complete hierarchy:

These are the EventSystem's configurations:

These are my canvas settings:

And these are use and drop button settings:

I have been working on a UI Inventory System for my Unity game and for some reason, none of my buttons work in my game. All the buttons have the ‘interact-able’ box ticked and an EventSystem which is in the scene. In my scene, I have an image, which is holding two buttons, in a canvas. The buttons are supposed initiate a function called UseItem when clicked, but they don't respond to anything. I also don't get any errors or warnings in the Console. I am using Unity 2019.4.17f1 LTS. The pictures below show my UI.

Here's a picture of my game scene:

Here's the complete hierarchy:

These are the EventSystem's configurations:

And these are use and drop button settings:

I have been working on a UI Inventory System for my Unity game and for some reason, none of my buttons work in my game. All the buttons have the ‘interact-able’ box ticked and an EventSystem which is in the scene. In my scene, I have an image, which is holding two buttons, in a canvas. The buttons are supposed initiate a function called UseItem when clicked, but they don't respond to anything. I have tested them using Debug.Log, but I don't get any messages back in the Console. I also don't get any errors or warnings. I am using Unity 2019.4.17f1 LTS. The pictures below show my UI.

Here's a picture of my game scene:

Here's the complete hierarchy:

These are the EventSystem's configurations:

These are my canvas settings:

And these are use and drop button settings:

added 41 characters in body
Source Link
OKprogrammer
  • 522
  • 1
  • 7
  • 20

I have been working on a UI Inventory System for my Unity game and for some reason, none of my buttons work in my game. All the buttons have the ‘interact-able’ box ticked and an EventSystem which is in the scene. In my scene, I have an image, which is holding two buttons, in a canvas. The buttons are supposed initiate a function called UseItem when clicked, but they don't respond to anything. I also don't get any errors or warnings in the Console. I am using Unity 2019.4.17f1 LTS. The pictures below show my UI.

Here's a picture of my game scene:

Here's the complete hierarchy:

These are the EventSystem's configurations:

And these are use and drop button settings:

I have been working on a UI Inventory System for my Unity game and for some reason, none of my buttons work in my game. All the buttons have the ‘interact-able’ box ticked. In my scene, I have an image, which is holding two buttons, in a canvas. The buttons are supposed initiate a function called UseItem when clicked, but they don't respond to anything. I also don't get any errors or warnings in the Console. I am using Unity 2019.4.17f1 LTS. The pictures below show my UI.

Here's a picture of my game scene:

Here's the complete hierarchy:

These are the EventSystem's configurations:

And these are use and drop button settings:

I have been working on a UI Inventory System for my Unity game and for some reason, none of my buttons work in my game. All the buttons have the ‘interact-able’ box ticked and an EventSystem which is in the scene. In my scene, I have an image, which is holding two buttons, in a canvas. The buttons are supposed initiate a function called UseItem when clicked, but they don't respond to anything. I also don't get any errors or warnings in the Console. I am using Unity 2019.4.17f1 LTS. The pictures below show my UI.

Here's a picture of my game scene:

Here's the complete hierarchy:

These are the EventSystem's configurations:

And these are use and drop button settings:

Source Link
OKprogrammer
  • 522
  • 1
  • 7
  • 20

Unity UI Buttons Not Functioning

I have been working on a UI Inventory System for my Unity game and for some reason, none of my buttons work in my game. All the buttons have the ‘interact-able’ box ticked. In my scene, I have an image, which is holding two buttons, in a canvas. The buttons are supposed initiate a function called UseItem when clicked, but they don't respond to anything. I also don't get any errors or warnings in the Console. I am using Unity 2019.4.17f1 LTS. The pictures below show my UI.

Here's a picture of my game scene:

Here's the complete hierarchy:

These are the EventSystem's configurations:

And these are use and drop button settings: