Question: Material Instance is automatically attached to multiple objects. #11841
Unanswered
hwstojimaryuta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Environment
UnityEditor version: 2022.3.42f1
Version of MRTK: 2.7.3.0
Problem
In this state, the processing of Material Instance increased and the load on Unity increased.
Currently, the load is temporarily reduced by deleting the Material Instance of objects that do not change material in scripts.
Questions
Which operations cause automatic attachment of Material Instance?
I have verified the possible parts in my environment, but could not reproduce the problem.
The following are the assumed verification details.
- Duplicate the object.
- Change to a different material.
Also, EnsureComponent() automatically creates a component when there is no MaterialInstance, so I checked the script I implemented, but it was not used.
Tentatively, I am trying to reduce the load by deleting the Material Instance component of the object that does not change material in the script. If this is incorrect, I would like to know the correct way to handle this as well as the negative effects of not having Material Instance.
Beta Was this translation helpful? Give feedback.
All reactions