unity gameobject sprite set native size in script code example Example: unity gameobject sprite set native size in script TargetsGO.GetComponent<Image>().SetNativeSize();