Hey all,
So I have a script that, when I click the left mouse button, instantiates a sprite at the position of the mouse. This is that line of code:
Instantiate(emptyAtomPrefab, mainCamera.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, 0f)), Quaternion.identity);
So the problem is that the sprites is completely invisible in the Game View, but not in the Scene View. This feels like a weird bug, because I can’t think of a reason why it wouldn’t appear.
A few things to note:
- The Sprite is not an image or any kind of UI object.
- The Sprite only contains the default components.
Anyone knows what’s going on here? Thanks!