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;
}