Saving / Loading Material custom parameters and textures
Posted: Sun Oct 06, 2019 4:32 pm
Hi,
I'm wanting to run-time save material setups. I have a custom shader / material which has a ton of custom parameters floats/colors/textures. The normal material stuff. Unity has "presets" which would be perfect if they allowed material presets to be loaded at runtime but seems like that isn't an option for whatever reason. All the textures are in resources for runtime loading. I know that I can do this manually by knowing and saving the filenames of textures and loading them, but curious if there is a way to get Easy Save to do this w custom types and single LoadInto call? I'm saving the Material using this method but it doesn't seem to save any custom properties. It's a custom shader w a dozen textures / blend presets etc.... real pita to manually make a load/save system for them when I've experienced the magic of single call save/load w custom types (LOVE IT)!
I'm wanting to run-time save material setups. I have a custom shader / material which has a ton of custom parameters floats/colors/textures. The normal material stuff. Unity has "presets" which would be perfect if they allowed material presets to be loaded at runtime but seems like that isn't an option for whatever reason. All the textures are in resources for runtime loading. I know that I can do this manually by knowing and saving the filenames of textures and loading them, but curious if there is a way to get Easy Save to do this w custom types and single LoadInto call? I'm saving the Material using this method but it doesn't seem to save any custom properties. It's a custom shader w a dozen textures / blend presets etc.... real pita to manually make a load/save system for them when I've experienced the magic of single call save/load w custom types (LOVE IT)!