Menu framework dont hide on scene load

Announcements, support questions, and discussion for the Dialogue System.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Menu framework dont hide on scene load

Post by hrohibil »

Hello Tony

I setup Invector integration by following the documentation.
When i click on the start game button, iot loads the first game scene but the menu dont hide/dissaper?? Its just there while gaming is running.

Please assist..
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu framework dont hide on scene load

Post by Tony Li »

Hi,

What menu are you using?
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Menu framework dont hide on scene load

Post by hrohibil »

I am using the menu framework . The one which is all setup and ready.
I want to use with my invector game


User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu framework dont hide on scene load

Post by Tony Li »

Hi,

Inspect the Menu System GameObject's Title Menu component. Make sure Title Scene Index and Credits Scene Index are correct. They should match the scene index values in your build settings.

Then inspect the Save Helper component. Make sure the First Gameplay Scene is correct.

If those are all correct, are there any errors or warnings in the Console window?
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Menu framework dont hide on scene load

Post by hrohibil »

Thank you so much Tony for taking time to look into this.

In my build settings I only have 3 scenes.

-MAIN/Title scene
-Level1
-Credit

The title scene index is the build index number right? My main menu or title scene is on index 1.



See my setup
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu framework dont hide on scene load

Post by Tony Li »

What is "Scenes/Main"? Is that your title scene or your gameplay scene? Its index is 0. If it's the title scene, set the Title Menu's Title Scene Index to 0.

What is "Scenes/MyMainNEWSCENE"?

Make sure your title scene and gameplay scene are both in build settings.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Menu framework dont hide on scene load

Post by hrohibil »

Thank you Toni.
That solved that and generated two more questions.

1:
I dont have a spinner / loader it kind of loads rough. Is there a loader i can use ?

2:
The level it loads , there is an dialouge trigger that get activated as soon as the game starts, but now when i enter game from the main menu, the dialoge UI is gone. The game stands still as it should , but the UI is gone?
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu framework dont hide on scene load

Post by Tony Li »

hrohibil wrote: Thu Jul 21, 2022 2:57 pmI dont have a spinner / loader it kind of loads rough. Is there a loader i can use ?
1. Download and import the SaveSystemPrefabs package from the Dialogue System Extras page.

2. Remove the save system components from your Dialogue Manager. (SaveSystem, JsonDataSerialized, PlayerPrefsSavedGameDataStorer, StandardSceneTransitionManager)

3. Add the Save System prefab to your scene.

4. Add the Loading Screen scene to your build settings.

5. Update the scene indexes in the Menu System's TitleScene component.
hrohibil wrote: Thu Jul 21, 2022 2:57 pmThe level it loads , there is an dialouge trigger that get activated as soon as the game starts, but now when i enter game from the main menu, the dialoge UI is gone. The game stands still as it should , but the UI is gone?
If your Dialogue System Trigger is set to OnStart, change it to OnSaveDataApplied.

Also, keep in mind that, at runtime, the Dialogue Manager in your gameplay scene will be replaced by the one from the title scene.
hrohibil
Posts: 369
Joined: Thu Nov 04, 2021 12:50 pm

Re: Menu framework dont hide on scene load

Post by hrohibil »

Ok thank Loading screen solved.. YOu are the man !!!

But still no visible dialouge system when i enter the game?

I tried to create a prefab out of the one i had in my level1 and then i inserted that prefab to the MainMenu/Title scene.

NOTE: When loading from the level it self and NOT from the menu it works
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Menu framework dont hide on scene load

Post by Tony Li »

hrohibil wrote: Thu Jul 21, 2022 3:14 pmNOTE: When loading from the level it self and NOT from the menu it works
That means the issue is what I said in my previous post: At runtime, the Dialogue Manager in your gameplay scene will be replaced by the one from the title scene.

If you have made any assignments in the gameplay scene between the Dialogue Manager GameObject and the other scene objects, this post might give a better explanation.
Post Reply