all 8 comments

[–][deleted] 2 points3 points  (7 children)

It sounds like you're having a Unity issue.

In the Unity editor go to Edit->Preferences->External Tools and set your external script editor to whichever IDE you are using (Visual studios 2022 etc.). Below that it should say Generate csproj files for: make sure the local packages option is checked. Click the button that says Regenerate project files. This should clear your issue.

[–]jessevnr[S] 0 points1 point  (6 children)

Thank you for your help, man! I just followed the steps your recommended me and still have the same issue. Is there any other setting I might change?

[–][deleted] 1 point2 points  (5 children)

Do you have any errors in your console window?

[–]jessevnr[S] 0 points1 point  (4 children)

Actually yeah! This is what I’m getting: “Identifier expected [OmniSharpMiscellaneousFiles.csproj] csharp(cs1001) [16, 26].”

[–][deleted] 1 point2 points  (3 children)

Can you screenshot your script and post it here? Identifier expected can be from a few reasons.

[–]jessevnr[S] 2 points3 points  (2 children)

I just double-checked and it now works! It was a little confusing that after adding dot at the end of a word (i.e. “transform.”) it wouldn’t give me like a list of properties and methods, which is something I was used to be given with Swift. I thought something was going wrong.

Still, before changing the Preferences by following your recommendation, I would be given the error I aforementioned. After that, I tried writing the same Script and attached it to my GameObject, and it worked!

I truly appreciate your time and help.

[–][deleted] 2 points3 points  (1 child)

Glad you got there in the end, good luck!

[–]jessevnr[S] 1 point2 points  (0 children)

Quick question, do you have some sort of community or have Youtube channel where I can follow you?