Beginner here with a noob question. I’m trying to instantiate a sprite (redBall), but I can’t quite get my code to work. This is the part of the script that is relevant:
public Sprite redBall;
private void Start() {
Instantiate(redBall, new Vector3(0.0f, 0.0f, 0.0f), Quaternion.identity);
}
The Sprite field shows up in the inspecter, and I use the drag and drop method to set it. But when I run the program, nothing shows up. There’s no compiler error, and when I manually place the sprite in the hierarchy, it does show up, so I know it’s not a problem with the sprite object itself.
Thank you for your time.