예제 #1
0
 public static void ModifyContent(ref ImageRenderer renderer, Resource.IResource res)
 {
     renderer.rectTranfrom = renderer.GetComponent <RectTransform>();
     renderer.image        = renderer.GetComponent <RawImage>();
     renderer.ChangeContent(res);
     renderer.Attrs = res.Attrs;
     renderer.ApplyAttrs(res.Attrs);
 }