Hey, whenever I try to upload my avatar, the following error shows up whilst also not being able to access the Build & Publish menu:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.GameObjectInspector.ClearPreviewCache () (at :0)
UnityEditor.GameObjectInspector.ReloadPreviewInstances () (at :0)
UnityEditor.GameObjectInspector.OnForceReloadInspector () (at :0)
There’s a few things that could be going wrong here, and they don’t tend to be immediately obvious.
If you look in the Scene view or the hierarchy instead of the Game view, do you happen to see anything new added to the scene, such as cameras or UI? Or has nothing new been added to the scene by using Build and Publish?
Nope, none. Here is a screenshot:
Even weirder, now it doesn’t show an error. Great!
I see 21 info messages and 1 warning that might be worth looking at.
One thing to keep in mind with the VRChat SDK is that it’s running inside the unity editor. That means that your project can break things in very interesting ways.
One thing not in the screenshot is a play button at the top, if it’s blue, you could look over at the game tab. But most likely something stopped the sequence of stuff that is supposed to go unnoticed. If you’re new to unity it’s worth a reminder to go back to the scene tab at some point. Otherwise you may find yourself lost because the game tab has your character.
Over in the console tab, the message types are toggles. So you could click on the warning and see the one warning, click it again and you might think it’s not there.
If there is nothing added to the scene then it’s failing pretty soon in the process, but even then you still need to take a closer look at those messages.
The error message is attached to the first post – no other errors are there. Still no solution to this problem.
Ah, the first screenshot cuts off the message type of the null exception. So it’s not clear if info or error or warning.
The trace seems to only mention unity editor.
I don’t know if I mentioned this advice or not, but if the errors don’t make sense, you’ll end up wanting to look at all of the messages on the console to see if anything makes sense in an actionable manner.
Hi, I just looked all of my warnings or messages, but there isnt really anything that looks like its related to the error itself. If it helps, I’m willing to provide the whole log – stuffs really stressful right now.
Yeah you want to look at the whole log.
Last big unity kerfuffle I experienced was installing two copies of an editor tool, unity listed an error about mathematics not being able to load, I was worried that maybe Terrence Howard was right, and that 1*1 did now equal 2. But then I looked through the other messages and there was a vague reference to a variable already being defined in an editor .cs file. I deleted the extra copy of avatar manager, and the nonsense error about math not working went away.