00:00
00:00
Newgrounds Background Image Theme

Someone gifted MetalSlayer69 supporter status!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Edits to post #27061311 by RaIix

Edited

At 10/15/21 01:14 PM, GraeBush wrote:

void onLoggedIn()
{
    io.newgrounds.objects.user player = ngio_core.current_user;       
    SceneManager.LoadScene(0);
 }

Hi,

just a hunch, but a quick question based on this part – do you load a different scene when the player is logged in?

Unless you take some precautions (Object.DontDestroyOnLoad, or an additively loaded scene), this would destroy the NGio GameObject and it wouldn't be available in the following scene.


If it's not this, I'll try to help you debug it to get it working.


At 10/15/21 01:14 PM, GraeBush wrote:

void onLoggedIn()
{
    io.newgrounds.objects.user player = ngio_core.current_user;       
    SceneManager.LoadScene(0);
 }

Hi,

just a hunch, but a quick question based on this part – do you load a different scene when the player is logged in?

Unless you take some precautions (Object.DontDestroyOnLoad, or an additively loaded scene), this would destroy the NGio GameObject and it wouldn't be available in the scene you load.


If it's not this, I'll try to help you debug it to get it working.