Buddha was asked a number of questions by a wise philosopher of the time, such as "Is there a soul," "Is there a God" and "Is there life after death?" Buddha refused to answer because the answers aren't important. If they are important to you, there is a more basic question you should be asking first, which is, "Why is it important for me to believe that I know the answers?"
You will find the answer to this is always some variant of, "Because I'm afraid of dying and knowing the right things will help keep me from ceasing to exist." So the question becomes, why am I afraid of dying? And the answer is almost always something along the lines of, "Because I see myself as fundamentally separate from the Universe, and when I die, I'm gone."
This is based on the fact that mind has privileged access to some of it's own internal state. No one else seems to know our internal worlds, and so we fear that when we die, those worlds will be lost. Worse yet, as we believe we are the only ones who can put them in their proper context, when we die, they might be misinterpreted.
Well, buck up. You aren't separate from the universe. You are not a subject, observing the objects. You aren't a little man sitting in your head looking out through your eyes and hearing through your ears. The sense of self is just another sense, just another track in the recording. No one is listening because there aren't any such things as individuals to observe.
Is that confusing or upsetting? Then you are stuck in dualistic thinking, and will always be, in some sense, scared of death. If you can let go of dualism and realize that there is no subjective observer separate from the objects observed, but that observation still exists, then you will be free and it won't matter one bit whether we are living in a simulation, or even whether there is a God, a soul, or an afterlife.