Godot: Signals of StaticBody2D not working

Created on 21 Apr 2020  路  2Comments  路  Source: godotengine/godot

Godot version: 3.2

Issue description: the signals of StaticBody2D specially from category "CollisionObject2D" never works. I have always make a Area2D with the same Collisionshape and use the signals of Area2D.

Steps to reproduce:

  • Node2D

    • StaticBody2D (e.g. Signals like: Input_event, mouse_entered, mouse_exited)



      • CollisionPolygon2D



and just add a print to the signal.
Result: nothing happends.

If I replace StaticBody2D with an Area2D everything works fine again!

archived

Most helpful comment

Did you turn pickable on? Area2D has it enabled by default, while StaticBody2D doesn't.

All 2 comments

Did you turn pickable on? Area2D has it enabled by default, while StaticBody2D doesn't.

oh, that was the problem. Thank you :)

Was this page helpful?
0 / 5 - 0 ratings