I am making a vr game and the scene just wont show up. i just started using unity and i dont know what to do. i have been searching for answers because i haven’t been able to work on my game for a while. So please help me. hers a pic.
Please provide the code.
To use a class from another namespace, you need to put this into very start of file:
using YourNamespace;
You have a compiler error. Nothing is running until you fix that. Most likely you just made a typing mistake. If it’s not your code, perhaps you’re using an out-of-date package. If so, fix that.
You can fix your own typing mistakes. Here’s how:
Remember: NOBODY here memorizes error codes. That’s not a thing. The error code is absolutely the least useful part of the error. It serves no purpose at all. Forget the error code. Put it out of your mind.
The complete error message contains everything you need to know to fix the error yourself.
The important parts of the error message are:
- the description of the error itself (google this; you are NEVER the first one!)
- the file it occurred in (critical!)
- the line number and character position (the two numbers in parentheses)
- also possibly useful is the stack trace (all the lines of text in the lower console window)
Always start with the FIRST error in the console window, as sometimes that error causes or compounds some or all of the subsequent errors. Often the error will be immediately prior to the indicated line, so make sure to check there as well.
Look in the documentation. Every API you attempt to use is probably documented somewhere. Are you using it correctly? Are you spelling it correctly? Are you structuring the syntax correctly? Look for examples!
All of that information is in the actual error message and you must pay attention to it. Learn how to identify it instantly so you don’t have to stop your progress and fiddle around with the forum.
i can’t view my assets either so i don’t know what to do.
Perform a Double-click on the “Console” tab to minimize it.
that works thank you so much!