I
I
Ivan Tsarevich2020-11-22 16:36:06
C++ / C#
Ivan Tsarevich, 2020-11-22 16:36:06

Unity script doesn't work and complains about void Update, what's the problem?

I bought a textbook and follow it line by line.
I write the specified code, everything is according to the book. But it throws error
CS8025 C# Feature is not available in C# 4. Please use language version 7.0 or greater.
What am I doing wrong ?

The code itself
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HelloWorld : MonoBehaviour {

  // Use this for initialization
  void Start () {
        //print("Hello World");
    
        void Update ()  {
            print("Hello World");
        }
  }
  
  // Update is called once per frame
  void Update () {
    
  }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
2
20two.may, 2020-11-22
@BeginerGame

Download the installer HERE .
There you select the items, as in the screenshot and install.5fba6b39e32d6442616631.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question