Question by
Frank-Grimes · Dec 12, 2015 at 10:50 PM ·
components
Post-5.3 upgrade: WARNING: Implicit downcast from UnityEngine.Component to UnityEngine.UI.Image
After upgrading to 5.3, I'm getting: WARNING: Implicit downcast from 'UnityEngine.Component' to 'UnityEngine.UI.Image' from code:
public var imgs : Component[];
imgs = GetComponentsInChildren(UnityEngine.UI.Image);
for (var img : UnityEngine.UI.Image in imgs){ img.enabled = false; }
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612052405im_/https://answers.unity.com/themes/thub/images/avi.jpg)