Hi,
In the module 4 Programming, I do not have the option to create a C# Code. When I go to create my top and last option is 2D, any idea what is going on?
Thank you,
Natalie
So, when you open the Create menu, the only option listed is 2D? Do you have any errors in the Console window? If you press Ctrl-Shft-N to create a GameObject, you can select it in the scene hierarchy, then press the Add Component button. At the bottom of the list should be a New Script option.
Hi CodeRonnie,
Thank you for helping me, I am going to give that a try.
Thank you,
Natalie
Are you sure you are right-click-creating in the Project window and not in the Hierarchy or some other window?
Hi, Here are the directions: Instructions
-
In the Project window, navigate to _Unity Essentials > Scripts. There should already be a folder inside the Scripts folder named Provided Scripts — ignore this folder for now.
-
Right-click in an empty part of the Scripts folder and select Create > C# Script.
-
With the script’s name automatically highlighted, immediately rename this new script “PlayerController” (with a capital ‘P’ and ‘C’).
It’s important to get the name correct right now — renaming it later can cause problems.
5. Press Enter to save the script name.
You’ll see the code of the new blank script in the Inspector window. Notice that the name of the file is included in the code. That’s why it’s important to spell the file name correctly.
Note: If you make a typo in your script name or have to rename it for any reason, it will be easier to just delete it and create a new one with the correct name.
I am in the project area and I attached a photo of what I see. As you can see when you go to create. it does not open an option for C#.
Go into the Scripting menu and select Empty C# Script. It seems like you are using Unity 6, and the tutorial you are following was not made with Unity 6. That is not surprising because Unity 6 is in preview, and not the recommended version to install through the Unity Hub. I typically stay away from anything but LTS, long-term-stable, versions of Unity unless there is a good reason not to. Especially as someone who is learning, there could easily be some kind of unexpected bug in an experimental preview version of Unity that you may not be ready to assess or deal with. I would recommend installing the LTS version 2022.3.latest (42 as of right now).
@CodeRonnie, thank you so very much for the help, and all your information. I was wondering yesterday if the Unity I installed was not matching up to the training videos. Thank you for the advice, and support.
Take care,
Natalie
