ChensHelpers
Chen.Helpers.GeneralHelpers.Extensions
Extensions.ConvertShaders(AssetBundle) Method
Replaces all the shaders of the materials in the specified asset bundle.
Uses the prefix “Fake RoR” as a prefix to match materials whose shaders will be replaced.
It also uses RoR2Helpers.DefaultData.ShaderReplacements dictionary as reference for replacements.
public static void ConvertShaders(this AssetBundle assetBundle);
Parameters
assetBundle
UnityEngine.AssetBundle
Asset bundle whose materials will be converted