Unity-Technologies / HLODSystem

883 stars 142 forks source link

Fixed to find materials created as a Sub-Asset. #32

Closed JangkyuSeo closed 5 years ago

JangkyuSeo commented 5 years ago

Purpose of this PR

The AssetDatabase returning the first matching type asset when using the LoadAsset method. If there is more than an object which is the same type, it was used the first found object only. I've changed to use the object with the same name in the same type.


Release Notes

Fixed to find materials created as a Sub-Asset.


Testing status

Make sure the MaterialPreservingBatcher supports Sub-asset materials.


Overall Product Risks

Technical Risk: Low

Halo Effect: Medium. It needs to re-build HLOD which baked before.


Comments to reviewers