unity-renderer icon indicating copy to clipboard operation
unity-renderer copied to clipboard

debug: ab gltf debug viewer

Open D4rWiNSS opened this issue 3 years ago • 2 comments

Context

We have AB ( asset bundles) to improve the performance of the scenes. These assets bundles are converted after the scene has been published and this conversion can fail completely or by parts, when this happens, we use the original GLTFs instead of the asset bundles.

So you can have a scene with half of the items as asset bundles and the other half as GLTF.

With this PR, you can debug the scene and see which items are GLTF and which ones are AB.

This PR was rush during the Fashion week to ensure that the scenes were converted correctly, so not a correct approach was done in order to have it as quickly as possible

How to see that

When you use the shortcut, it will change the materials of all GLTFComponents to red or green based on their origin

Red material: GLTF Green material: Asset Bundles

Left shift + A : Changes the materials of the current scene Left shift + Q : Changes the materials of all the loaded scenes Left shift + F : Revert all the changes done to the materials

What does this PR change?

This PR should NEVER be merged since it is a very hacky way to see the AB.

It adds the ability to check the conversion of the scene to asset bundles

D4rWiNSS avatar Mar 24 '22 15:03 D4rWiNSS

After the CI passes:

github-actions[bot] avatar Mar 24 '22 15:03 github-actions[bot]

Waiting until this is done: https://github.com/decentraland/unity-renderer/issues/1456

AjimenezDCL avatar Jun 28 '22 10:06 AjimenezDCL