Click to open Page UI Widget on Screen by clicking on a 3D Object?

Hi there, I’ve been trying to create a page reading system similar to Slenderman: The Eight Pages

Setup:

Paper Model

Hover over Page, (Mouse Cursor shows)

Click on Page

Open Widget GUI of said page with all it’s information.

press X UI Element to close it

Except I’ve tried OnClick Events and functions on the model and have all the Pages setup.

But yet when I click on the Paper it does not open the Page on the screen as wanted

How I intended it is to work as above

Click the Page Model eg, a book.

You hover over it and it shows the cursor.

and then you click it and it opens said page UI which can be closed by pressing said “X” on the right hand corner.

If someone can help me out on this that’d be appreciated. I use both C++ and Blueprints

I come from Unity, but moved to Unreal Engine 5 a few years ago.

Hey there @UnrealDestroyer! Welcome to the community! It sounds like your player controller may not have ClickEvents enabled on your player controller. You can enable them in the player controller’s details or in your character’s BP like this if needed at runtime. Then make sure your mesh that you intend to click is using the OnClick event. Let me know how it goes!

image

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.