googlecodelabs / arcore-intro

Other
12 stars 16 forks source link

Cannot convert method group `IsError' to non-delegate type `bool'. Consider using parentheses to invoke the method (CS0428) (Assembly-CSharp) #4

Closed beersheba closed 6 years ago

beersheba commented 6 years ago

Error in code on page 3 - Set up the SceneController else if (Session.Status.IsError)

Cannot convert method group IsError' to non-delegate typebool'. Consider using parentheses to invoke the method (CS0428) (Assembly-CSharp)

Must be else if (Session.Status.IsError())

CJRobertson commented 6 years ago

I get the same error. Using the suggestion from the OP's post fixes this issue.

kai-dream commented 6 years ago

Hi,

Thanks for trying out the codelab. Yes, there's minor error in the webpage, we missed the "()". I've fixed that.

Cheers