Skip to content

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

@michael-simpson

Description

@michael-simpson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:getting startedIssues and PRs related to the Getting Started section of the documentationenhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions