uibutton image
let btnImage = UIImage(named: "image")
btnTwo.setImage(btnImage , for: .normal)
uibutton image
let btnImage = UIImage(named: "image")
btnTwo.setImage(btnImage , for: .normal)
unity image
//Make sure you are using UnityEngine.UI
using UnityEngine.UI
//We can assign this image in the inspector
public Image image;
//Also assign this in the inspector
public Sprite mySprite;
public void ChangeImage ()
{
image.sprite = mySprite;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us