The response is different depending on the position of the Widget Button.
I am currently testing in various ways.
My Button is in the Canvas area, and depending on the size of the Viewport during play, there seems to be an area where the clickable area is possible and there is an area where it is not.
Expected 1) Is it not recognized because there is a Button in the Canvas area?
Expected 2) Is the location not matching because the size of the viewport and the size of the canvas are different?
Currently, I am trying to do this without making two widgets.
If you increase the viewport horizontally, at some point there is a point that matches the position of the Button, so that the Button recognizes it properly.
It looks like some kind of trickery.
How can I get rid of the misoperation between the button position and the viewport matching and the button can be recognized consistently even if the size of the viewport is changed?
Hello I found the cause of this problem.
1.
This was due to the order in which the viewports in the other UIs were completed.
In My Game When the player is first created, it has a few UI’s. (Invisible after Viewport in BeginPlay.) This was created in advance because it reduces errors that occur during gameplay.
In conclusion,
In this case, the order is twisted due to the UI of the Actor.
As Player becomes PlayerStart, it loads my UI information. However, in the case of an Actor decorated in the Level, it is called before PlayerStart.
I ended up writing this without thinking about the benefits, so I had the same problem as above.
So, in the case of actors placed in advance, this problem was solved by creating a bool variable after ‘Play’ and using it only once when the first Interact occurs.
However, the reason that the button was pressed only when the screen size was increased, which I thought was strange in the past, is because the image size that was hidden in the Invisible state in the player was fixed to the size luckily determined.
Just in case there is a situation similar to mine, I will leave it without erasing the contents of my mistake this time. Thank you.