Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a CollisionShape2D on an instanced Area2D in the editor does not work #4348

Closed
chanon opened this issue Apr 17, 2016 · 1 comment
Closed

Comments

@chanon
Copy link
Contributor

chanon commented Apr 17, 2016

Operating system or device:

Windows 10

Issue description (what happened, and what was expected):

In TestArea.tscn I have

TestArea (Area2D)

With script TestArea.gd:

extends Area2D

func _input_event(viewport, event, shape_idx):
    print(self.get_name())

If I add that to another scene main.tscn and add a CollisionShape2D to it:

Node2D
     -> TestArea (from TestArea.tscn)
               -> CollisionShape2D (added in main.tscn with rectangle shape) 

The CollisionShape2D doesn't seem to work and nothing is logged out.

I have attached an example project. To the left is an Area2D that was created in main.tscn. On the right is a TestArea loaded from TestArea.tscn
collision_shape.zip

@leonkrause
Copy link
Contributor

The issue is the same as #2314, so let's use that one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants