Adapted from https://gist.github.com/ditzel/73f4d1c9028cc3477bb921974f84ed56
Many thanks to ditzel: https://gist.github.com/ditzel
Demo and explanation of the original script at https://www.youtube.com/watch?v=VwGiwDLQ40A&list=WL
⚠⚠⚠
Original script should work on .FBX models but I didn't manage to make it work correctly.
The author says "Put it (the script) on a game object with a mesh filter and renderer. Make sure to have read/write enabled on fbx import"
From what I've understood you have to enable read/write on the model you import and it should have mesh filter and renderer
In my case I got ArrayIndexOutOfBoundsException
or other errors. Good luck