Somebody Please Help!!!

I recently downloaded unity on my mac mini and i’m using version 2020.2.1f1 and when i try scripting following a tutorial it doesn’t open up visual studio. it open us a different thing called text edit and i want to set visual studio to my default.

and when i code even if i follow the tutorial exactly it doesn’t work the way its supposed to and it doesnt even run. what should i do?

First of all “Somebody Please Help” is pretty bad title for thread.

If I remember correctly Text Editor it’s default macOS default app for opening text files.
Visual Studio available only on Windows.
You could try other code editor on macOS. For example Visual Studio for Mac (sounds similar but it’s different product), Rider (not free) or Visual Studio Code.
You could select code editor that Unity will use in Preferences on External Tools tab https://docs.unity3d.com/Manual/Preferences.html#External-Tools

to answer this we need to know what exactly doesn’t work at least.

1 Like

@Henry_mullin

Sorry for the confusion! It sounds like something didn’t quite install correctly, but you can fix it quickly following the Getting Started guide:

Getting Started with Visual Studio Tools for Unity | Microsoft Docs

In Unity, open the Unity > Preferences > External Tools menu and make sure Visual Studio for Mac is selected.

1 Like

Post the error your are seeing!

Copy and paste the exact code you’re using using code tags, a link to the tutorial you’re following, and the entire error message you’re getting.

With what you’ve told us so far, it could be almost anything. There are a number of seemingly insignificant syntax mistakes that are very hard to see, but cause compilation to break. It’s possible that you genuinely have done everything precisely according to the tutorial, but if you’re following a very old tutorial it might be using an obsolete function that has been removed. It’s possible that your error might be caused by some other setting or something. Without seeing the above information, we just can’t know and can’t help.

1 Like

youtube link →

code I used:
using system.collections;
using system.collections.generic;
using UnityEngine;

public class ThirdPersonMovement : MonoBehavior
{
public CharacterController controller;

public float speed = 6f;

void update ()
{
float horizontal = input.GetAxisRaw(“horizontal”);
float vertical = input.GetAxisRaw(“vertical”);
vector3 direction = new vector3(horizontal, 0f, vertical).normalized;

if (direction.magnitude >= 0.1f)
{
controller.move(direction * speed * time.deltatime);
}
}
}

error message → all compilation errors most be fixed before entering play mode.
and when i create a new project it says: the project you are opening contains compilation errors.

and when my script gets entered in i should see this 6694477--768118--Screen Shot 2021-01-06 at 9.16.25 AM.png

but instead it just compiler errors and shows nothing :frowning:
how should i fix this?

use code tag in the future. it will be much easier to read code

using System;

public class DummyClass
{
    public void DummyMethod
    {

    }
}

C# language is case sensitive.
I see few pleases where you use lower case instead of upper case:

  • update() should be Update()
  • input should be Input
  • time should be Time
  • vector should be Vector3

If you click on that it will open the console and you can see what the actual errors are. ( @VolodymyrBS has pointed out some of them. Your first two lines are also capitalized incorrectly)

thanks for the help! i got it working now,

1 Like

I got this error because libssl1.1 was missing.

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb sudo dpkg -i libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb

Reference: https://stackoverflow.com/questions…at-no?newreg=61cff5f215524355a65f7ad99365fb98

Please stop cross-posting/necroing.