KinematicBody2D mouse entered function not being called

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mymokol

I have a KinematicBody2D, that has a signal mouse entered (not writing the underscores because of this site’s funky formatting). That should be called whenever the mouse enters the collision shape that is the KinematicBody2D’s child, just like Area2D would do, but it does not. When I hover the mouse over the collision shape of the body, it does nothing. What am I doing wrong? If I didn’t provide enough information, I apologise, please ask me for the info I should’ve told you.

:bust_in_silhouette: Reply From: AlexTheRegent

You need to set CollisionObject2D/pickable to true in editor or set input_pickable = true in code.

P.S. This site use Markdown as formatting processor, so _text_ means italic style. You have to wrap your code in `` to avoid formatting or use Code Sample button above text field to mark whole block as code.

Thanks a lot!

mymokol | 2021-02-25 11:08