Forum rules - please read before posting.

OnMouseOver GameObject do something

Hi All,

I wondered if anyone has successfully made a gameobject do what you need to do when mouseover/cursor over the gameobject?

I want to keep the hotspot for it to do something else but mouseover/hovering over the same object it will do what you want it to do.

Tried to use a trigger but it only works if there is a player in scene. Tried to use Physics: Raycast and when object detected, do something. Still doesnt work.

What is the best way to do this?

Thanks
Ben

Comments

  • If you want to have a reaction to a Hotspot becoming selected, you can use the Event Runner component to define a Hotspot / Select event. Set the Actions source to In Scene, and you can then assign the specific Hotspot you want your Cutscene to run for.

  • Thanks Chris. That's a different method and it does work. I actually had to use a Mouseover script to make the object do something. So there's 2 ways to do it. However, the hotspot becomes kinda disabled until the animated part does it job. Prefer the hotspot to continue being available if someone wants to press it rather than wait for its animated part to finish.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.