giving me error Assets/Scripts/Bird.cs(10,32): error CS1002: ; expected

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Bird : MonoBehaviour
{

void Start()
{
GetComponent
}

// Update is called once per frame
void Update()
{

}
}

please help me

  1. use code tags when posting code
  2. What are you trying to do here? You’ve sort of written half a line of code within Start(), but it’s not close enough to being a complete line for us to be able to guess what the rest of it should be.

Is this from a tutorial? If it is, continue with the tutorial for a bit. The code you posted is simply missing any possible useful functionality.

2 Likes

For your reference, how to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

How to understand compiler and other errors and even fix them yourself:

https://discussions.unity.com/t/824586/8

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: https://discussions.unity.com/t/481379

sorry i am new

Your GetComponent is incomplete. You’re getting the component, but not doing anything with it, nor storing the reference. So you might as well just delete that line unless you actually had plans for it. But the compile error has to do with you not ending the line. You need to add (); after what you wrote there.

Building more on what Uncle Joe says, 100% of spelling, capitalization, spacing and punctuation has to be present and PERFECT.

If you get all the characters in a file right except for one lousy character wrong, generally the entire game simply DOES NOT WORK.

That’s why it’s important to understand how to fix compiler errors. See my link above.

The compiler is your best friend. Learn how to accept his guidance to help you write your program.

1 Like

I mean, alright, but I was more looking for answer to those questions than an apology. We still don’t have enough information to be able to help you.