- Home /
Question by
oudi · Dec 02, 2015 at 03:16 AM ·
unity 5codepagedocumentation
i'have problem with scrip
hi everybody , i'm a bignner and i found some problem with scripting I started by reading documentation and when I arrived at the part (accessign components) it gives error please please check out my file attachement :)
Comment
please post code as text and NOT a screenshot... and format it correctly too (using the 101/010 button).
It has to be
GetComponent<RigidBody>()
(withour "." ) for csharp. GetComponent.() is js.
Answer by LT23Live · Dec 02, 2015 at 08:26 AM
@saschandroid is correct. The issue is you should change
GetComponent.() to GetComponent ()
The '.' is throwing everything off!
Your answer
