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 #27061388 by GraeBush

Edited

At 10/15/21 02:26 PM, RaIix wrote:
At 10/15/21 01:14 PM, GraeBush wrote:
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.


Thanks for the help. I just followed the steps of the pdf and just added the first scene to load when signed in. I also prefab'd everything and added it to each scene. Should I only use one instance and carry it over with a Singleton like you suggested?


At 10/15/21 02:26 PM, RaIix wrote:
At 10/15/21 01:14 PM, GraeBush wrote:
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.


Thanks for the help. I just followed the steps of the pdf and just added the first scene to load when signed in. I also prefab'd everything and added it to each scene. Should I only use one instance of the NGio and carry it over with a Singleton like you suggested?

Edited

At 10/15/21 02:26 PM, RaIix wrote:
At 10/15/21 01:14 PM, GraeBush wrote:
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.


Thanks for the help. I just followed the steps and just added the first scene to load when signed in. I also prefab'd everything and added it to each scene. Should I only use one instance and carry it over with a Singleton like you suggested?


At 10/15/21 02:26 PM, RaIix wrote:
At 10/15/21 01:14 PM, GraeBush wrote:
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.


Thanks for the help. I just followed the steps of the pdf and just added the first scene to load when signed in. I also prefab'd everything and added it to each scene. Should I only use one instance and carry it over with a Singleton like you suggested?