Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

How to use SceneManagement?

$
0
0
I tried making a death trigger that would reload the scene when you hit it. To do that you need to use SceneManagement. But I use this: using UnityEngine.SceneManagement and it keeps giving the error "A namespace cannot directly contain members such as fields or methods." I've seen this exact code in other scripts so I don't know what the problem is. Please help; I'm new to unity and C# so this is all new to me.

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>