# Remove or change graphic of InputField target graphic

I am working on a game in Unity and I have to use an InputField but I would like it to not have a border. Currently it has a black border with a border radius that needs to go.

Through my initial searching, I came across this question and thought I found the answer to my problems.

However, I cannot seem to change or remove this TargetGraphic. If I use the button to the right to pick a new one and set it to none, it just reverts right back to the default graphic. It doesn't accept images and I even tried to set the target graphic programmatically but it didn't work.

This is the current look of the input, you can see the black border.

I also tried (without really hoping for much) to set it like so:

public InputField inputField;

void Start()
{
inputField = GetComponent<InputField>();
inputField.targetGraphic = null;
}


Also, you may be trying to drag and drop the new image into the Target Graphic property of the InputField component. The InputField component take an image target. The same GameObject will have another component which is called Image. You want to change the Source Image of this component.