What does "Sharing the same material" mean?

I think I know this, but I just want to make 100% sure that I understand what that means.

Let’s say I have two gameObjects in my scene.
Then I create a material in the assets folder.
I apply this same material to both gameObjects in scene.
Are they now considered to “share the same material”?

Or is there something else that needs to be done in a script to make them share the same material during run time?

Thanks.

Two objects “sharing the same material” simply means that they use the same material, like in the scenario you described in your post.

1 Like

OK, one reason now why I asked the question is because the following text I just found in the manuals:

Using different material instances - even if they are essentially the same - will make objects not batched together.
[http]

[/http]

This is what makes me wonder now if something else needs to be done or checked to make them use the same material (instance) during runtime to use dynamic batching. Do they need to be forced to use the same instance?

You can see the dynamic batching requirements on the manual page you posted the link to.

1 Like