Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Expected class delgate enum interface or struct

Discussion in 'Getting Started' started by phantomunboxing, Feb 23, 2016.

  1. phantomunboxing

    phantomunboxing

    Joined:
    Nov 10, 2015
    Posts:
    43
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,848
    You've got a method outside of a class. If you create a new script, Unity fills in a default script template for you... don't delete that; just insert your new method inside the class.

    I recommend going through a few of the scripting tutorials; it will save you a ton of time.
     
  3. phantomunboxing

    phantomunboxing

    Joined:
    Nov 10, 2015
    Posts:
    43
    I like watching streams to learn C# its more entertaining than mineless tutorials :D