Hey, How do you make a string with UI image elements instead of text in the inspector?
This is what I wrote:
public class Question {
public string Images;
}
Hey, How do you make a string with UI image elements instead of text in the inspector?
This is what I wrote:
public class Question {
public string Images;
}
A string literally means “text”. So your question kinda means “how do I make a text that is not a text”. What you really want to do is to not use a string, but a “Sprite”.
public class Question
{
public Sprite image;
}
of for an array of sprites:
public class Question
{
public Sprite[] images;
}