what is the purpose again of the "void" and the empy ( ) after stuff?

posted to: Mecanim Scripting
what is the purpose again of the "void" and the empy ( ) after stuff?
  • Jonathan Gonzalez(jgonzalez) replied

    void just means we’re not returning anything within that function/method. If you see something like "int myIntFunction ()" it means you'll return an int value. The parenthesis are typically used with parameters if you have any. If you don’t have parameters, you just keep them empty.