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

Clearer instructions on how to make resource unique and make the physics change clearer to see #9974

Open
michael-simpson opened this issue Sep 18, 2024 · 0 comments
Labels
area:getting started Issues and PRs related to the Getting Started section of the documentation enhancement

Comments

@michael-simpson
Copy link

michael-simpson commented Sep 18, 2024

Your Godot version:4.3

Issue description: Clearer instructions on how to make resource unique.

URL to the documentation page:https://docs.godotengine.org/en/stable/getting_started/step_by_step/instancing.html

I tried following the updated documentation with the Note made in. "Editing Instance Resources #8807" and it took me a while to find the contextual menu. Plus the balls drop too fast to notice the change in gravity.

This first amendment shows that you can edit the original ball's physics properties and using a 0.1 for gravity which shows up better in the example.

I would suggest changing

Let's now adjust an individual instance. Head back to the Main scene by clicking on the corresponding tab above the viewport.

to

Let's now adjust the original ball instance. Head back to the Main scene by clicking on the corresponding tab above the viewport.

Change

Select one of the instanced Ball nodes and, in the Inspector, set its Gravity Scale value to 10.

to

In the scene dock select the scene named Ball and, in the Inspector, set its Gravity Scale value to 0.1

update graphic to

instancing_property_gravity_scale

update graphic

instancing_property_revert_icon

Screenshot 2024-09-19 at 9 06 16 AM copy

my graphics are not as crisp as yours.

change

Rerun the game and notice how this ball now falls much faster than the others.

to

Rerun the game and notice how this ball now falls much slower than the others.

The second amendment creates unique resources for each instance.

Change note

You may notice you are unable to change the values of the PhysicsMaterial of the other balls. This is because PhysicsMaterial is a resource, and needs to be made unique before you can edit it in a scene that is linking to its original scene. To make a resource unique for one instance, right-click on it in the Inspector and click Make Unique in the contextual menu.

Resources are another essential building block of Godot games we will cover in a later lesson.

to

You may notice you are unable to change the values of the PhysicsMaterial of the other balls. This is because PhysicsMaterial is a resource, and needs to be made unique before you can edit it in a scene that is linking to its original scene. To make a resource unique for all instances, in the scene dock select the scene named Ball and, in the Inspector, click on the drop down arrow next to PhysicsMaterial and select Make Unique. Each ball can now have their own individual physics properties.

Screenshot 2024-09-19 at 9 04 56 AM

Resources are another essential building block of Godot games we will cover in a later lesson.

@AThousandShips AThousandShips added enhancement area:getting started Issues and PRs related to the Getting Started section of the documentation and removed bug labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:getting started Issues and PRs related to the Getting Started section of the documentation enhancement
Projects
None yet
Development

No branches or pull requests

2 participants