I am trying to make a pause menu but I have gotten an error saying that the modifier 'public' is not valid for the item; "Assets\Scripts\PauseMenu.cs(26,9): error CS0106: The modifier 'public' is not valid for this item". I can't finish the pause menu without having public in my code.
Your issue is likely before that. It looks like you are trying to declare public methods within another method.
Make your own thread and post the entire code and the error messages . We can't tell what's wrong without seeing your code. Please use the forum code tags when posting your code. It makes it easier to read.
Yes, this ^ ^ ^ very much. How to report your problem productively in the Unity3D forums: http://plbm.com/?p=220 How to understand errors in general: https://forum.unity.com/threads/ass...3-syntax-error-expected.1039702/#post-6730855 If you post a code snippet, ALWAYS USE CODE TAGS: How to use code tags: https://forum.unity.com/threads/using-code-tags-properly.143875/
Exactly! Well, if it's the same issue, the solution would be the same as well. If what WarmedxMints and omueller5 posted does not solve your issue, you don't have the same issue. This error can occur from all sorts of mistakes. For example in interface declarations you can't use the public modifer either. In any way, create your own thread..