Unity Tutorials: What am I doing wrong?

Hi,

I’m new to Unity and I am trying to learn the basics through the tutorials that are provided on the Unity website. I have encountered a very confusing problem though.

In the “Roll a Ball” tutorial there is a section on C#. When I followed the instructions and tried to run the script I get the error message “CS0547: ‘PlayerController.Start’: property or indexer cannot have void type”.
I don’t know C# so I am unaware of any issues but, naturally I assumed that if I followed the instructions I would achieve the same end result.

Any help would be greatly appreciated even if I’m just being really stupid.

Welcome!

Posting your code would help :slight_smile:

1 Like

I think I know what I did wrong… I pressed the apostrophe key instead of the semi-colon key. I’ve never face-palmed so hard in my life. XD

Look through the tutorial forums and you will find a very large percentage of problems are all based on typo’s. All part of the learning curve.

2 Likes