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

area2d collisionshape2d disabled can not use normally under editable children mode #56151

Open
setwind opened this issue Dec 22, 2021 · 7 comments

Comments

@setwind
Copy link

setwind commented Dec 22, 2021

Godot version

3.4.1 stable

System information

windows7 32bit

Issue description

when i create a scene including area2d and create a collosion2d, I use it in another scene and set its collision2d as editable children mode, I set the collision2d disable as true on the right dashboard.but the property can not use to close collision function. so I have to write "$collisionShape2D.disabled=true" to close its function.
I try it under godot_v3.3.4 ,it's no ploblem

Steps to reproduce

1st ,create a secene including area2d and create a collosionShape2d,
2nd, add to another scene
3rd, set area2d editable children
4th, set the collosionShape2d disable as true
5th, can not take any effects, collision shape is still visible
6th, I try it under godot_v3.3.4 ,it's no ploblem

Minimal reproduction project

No response

@setwind
Copy link
Author

setwind commented Dec 22, 2021

postscript:
so I have to write "$area2d/collisionShape2D.disabled=true" to close its function.
godot_v3.4.0 has the same problem

@setwind
Copy link
Author

setwind commented Dec 23, 2021

Additional description :
It seems my animationPlayer2d was foced to add an animation named RESET . I don't know if it is added by godot-self.
so ,when i add keyframes in other animation setting collision disabled to false or true. the RESET animation set collision disabled to no checked as default setting.
at last . I delete the RESET animation. now it's run well. it looks that godot collision disabled function is no ploblem? may be.
finally, this RESET is added by godot ??? I don't know.

@setwind
Copy link
Author

setwind commented Dec 23, 2021

even so,this error (collision disabled can not set true) dose not happen under godot 3.3.4

@Calinou
Copy link
Member

Calinou commented Dec 23, 2021

Additional description : It seems my animationPlayer2d was foced to add an animation named RESET . I don't know if it is added by godot-self. so ,when i add keyframes in other animation setting collision disabled to false or true. the RESET animation set collision disabled to no checked as default setting. at last . I delete the RESET animation. now it's run well. it looks that godot collision disabled function is no ploblem? may be. finally, this RESET is added by godot ??? I don't know.

RESET tracks were added in #43115 to combat a long-standing issue with Godot's animation editor in the best possible way (for now).

@setwind
Copy link
Author

setwind commented Dec 24, 2021

I meet a "RESET" animation in my animationplayer again . why godot always create a "RESET" animation automatically. it will disturb my coding in IDE

@Zireael07
Copy link
Contributor

@setwind: Calinou told you in a comment above why RESET animation is a thing.

@Rockpick
Copy link

Rockpick commented Aug 1, 2022

Version 3.4.4 stable
This seems to be an issue still. I'll try to explain some weirdness with this bug, that might help fix it.

  1. Create new scene (scene 1), with a CollisionShape2D as a Node of this scene.
  2. Create new scene (scene 2), with a Node that instances Scene 1. Enable "Editable Children" for instance of scene 1.
  3. Check "Disabled" for the CollisionShape2D in scene 1 (not the instance in scene 2) and DO NOT SWITCH TABS in the editor to scene 2.
  4. Play the Game -> works as intended
  5. Stop the Game, then SWITCH TABS to scene 2 (note: Disabled checkmark is now the correctly set as default)
  6. Play the Game -> CollisionShape2d shows up and is enabled but shouldn't be

I hope this helps.

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

5 participants