why do I keep getting errors?

Started by
11 comments, last by Alberth 2 years, 8 months ago

ok so I've been following this tutorial for a main menu but I'm having trouble with the code because it keeps saying I have errors when I cant find any so all help is appreciated

using UnityEngine;

using UnityEngine.SceneManagement;

using System.Collections;

public class Restart : MonoBehaviour

{

public void RestartGame()

{

SceneManager.LoadScene(SceneManager.GetActiveScene().name); // loads current scene

}

}

Advertisement

yeah im taking a course but im only on the basics and cant figure the problem out for this piece

ok its not letting me post the screenshot let me add it to a google doc

https://docs.google.com/presentation/d/1JVtBU4wyEPnYMSOFk6gyvneOM9JVKScQLyPQkHSYNq4/edit#slide=id.p

Need to request access for that so I won't bother.

Instead of posting a screenshot can you not copy/paste the error text?

Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls.

unity wont let me copy the errors so try this new link maybe

https://docs.google.com/presentation/d/1JVtBU4wyEPnYMSOFk6gyvneOM9JVKScQLyPQkHSYNq4/edit?usp=sharing

the share settings should allow anyone with that link to view it

This topic is closed to new replies.

Advertisement