Ran Into Problem With Course

SOLVED
GO TO Error using "FindObjectsOfType": different than "FindObjectOfType" FOR SOLUTION

Usually I follow Ben throughout the course pretty well (sometimes I add my own stuff) but for some reason when I typed my code word for word from the video it gave me an error.
Here is what I did:
image


Here’s what Ben did:
image

Here’s my full code:

You’re missing an “s”. ‘FindObjectsOfType’ not ‘FindObjectOfType’.

Those are two separate methods. One fetches one object, the other fetches multiple objects.

Privacy & Terms