// Replace material texture at runtime var renderer = __instance.GetComponentsInChildren<SkinnedMeshRenderer>() .First(x => x.name == "cf_body_00"); renderer.material.SetTexture("_MainTex", customTexture);
// Replace material texture at runtime var renderer = __instance.GetComponentsInChildren<SkinnedMeshRenderer>() .First(x => x.name == "cf_body_00"); renderer.material.SetTexture("_MainTex", customTexture);