public static void ModifyContent(ref TextRenderer render, Resource.IResource res) { render.rectTranfrom = render.GetComponent <RectTransform>(); render.Content = render.GetComponent <Text>(); render.ChangeContent(res); render.Attrs = res.Attrs; render.ApplyAttrs(res.Attrs); }