I am having trouble posting my C# script into my car

Hi Michael, welcome to the community! :slight_smile:

This error is actually a bit of a bug within Unity at the moment, it isn’t the correct error message. The issue will be that your script file name and class name do not match.

For example;

Example.cs

using UnityEngine;

public class Example : MonoBehaviour
{
    // ...
}

AnotherExample.cs

using UnityEngine;

public class AnotherExample : MonoBehaviour
{
    // ...
}

Hope this helps :slight_smile:

Privacy & Terms