-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Resizing instanced CollisionShape2D resizes all instances (and original) #38066
Comments
As far as I know, you need to edit the CollisionShape resource and check Local to Scene in the Inspector to avoid this. |
Ah, that fixes it, thanks! |
@LotsaBugs No, as this would duplicate every resource even if they're not being modified individually. This would result in worse performance. |
I see. Thanks for your help! Closing. |
I had the same issue. I need to programatically resize a CollisionShape2D's sub shape resource. I had the same problem of all my scenes sharing the same RectangleShape2D. Choosing "Local To Scene" solved my problem. However, when choosing the shape for a CollisionShape2D, there is the option of "Make Unique" Choosing "Make Unique" does not seem to do anything. My scene's .tscn file does not change and the resource is still shared across scene instances. Is this "Make Unique" option supposed to do the same thing as "Local To Scene", or something else? I am using Godot v3.2.2.stable.official on Ubuntu |
Godot version:
3.2.2 beta 1
OS/device including version:
Windows 10.18362
Issue description:
I have a scene like this:
It has this script:
When resizing an instanced button in the editor, all the other instances have their CollisionShapes resized, even the original scene.
Clicking
Make Sub-Resources Unique
doesn't do anything.Steps to reproduce:
Open the Minimal reproduction project or create your own scene as described and give it the script provided above.
Resize any instanced button to see the bug.
Minimal reproduction project:
Area2D Bug -1.zip
The text was updated successfully, but these errors were encountered: