getSpriteFrame use texture2d instead of sprite.