'GameObject[]' does not contain a definition for 'GetComponent' and no accessible extension method '

Please stop necro-posting old threads for unrelated problems.

Make your own fresh post, it is free.

Keep in mind many of the people above will never again log in and may never see your message.

This means YOU MUST COMMUNICATE clearly what you are doing. WE CANNOT READ YOUR MIND.

So… please start a fresh thread of your own, and before you post, read this:

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://forum.unity.com/threads/assets-mouselook-cs-29-62-error-cs1003-syntax-error-expected.1039702/#post-6730855

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

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

1 Like