derail-valley-modding / custom-car-loader

A Derail Valley mod that allows the addition of new cars and locomotive types to the game.
https://nexusmods.com/derailvalley/mods/324
MIT License
14 stars 6 forks source link

MaterialGrabber and MaterialGrabberRenderer #197

Closed WhistleWiz closed 10 months ago

WhistleWiz commented 10 months ago

Added MaterialGrabber, works the same way as SoundGrabber. Added MaterialGrabberRenderer, to handle MeshRenderers. Added MeshGrabber. Removed MeshGrabber. Changed grabber cache to be built at the start, avoiding grabbing materials from other mods. Changed json checks to check for empty too.