FindObjectsOfType Error

Hello All,
In the manual entry for FindObjectsOfType, it gives an example of a generic C# version as so:

HingeJoint[] hinges = FindObjectsOfType<HingeJoint>();

And yet, when I do that, I am receiving the following error:

error CS0308: The non-generic method `FindObjectsOfType' cannot be used with type arguments

What am I doing wrong?

EN[/url]

The generic version as described in the manual does not exist. You’ll have to use the non-generic version.

Thanks Tom, but what I’m not sure what ‘using the non-generic version’ means exactly. Could you illustrate?

Thanks

EN

HingeJoint[] hinges = (HingeJoint[]) FindObjectsOfType (typeof(HingeJoint));

Thanks very much!
EN