#I had this which worked before the
1 messages · Page 1 of 1 (latest)
Looks fine at a glance. You could try using breakpoints to make sure that the initialization is definitely being reached before the call to SayHello
I even put them on the same method just to make sure, but I'm still getting the Object Reference Error.
I'm confused, It was working before, I made lots of cloud code functions already, but after the update it just totally broke.
Are you sure it's the stageCode instance that's null? A constructor can't return null so I don't see how it could be that if you've tried placing them sequentially in the same method. It might be the CloudCodeService - try adding this to your Start method before the stageCode is initialized: await UnityServices.InitializeAsync();