Jump to content

Generate Light Probe and Unity Play Time errors


Ugur Tuna
 Share

Go to solution Solved by Peter,

Recommended Posts

Hi, I am currently using Gaia Pro and getting some errors.  1) When I click to Generate Global Scene Light Probes it gives me 3 errors and nothing happens. 2) When start the play mode it gives me 2 errors. (Unity 2020.3.24f1 , Gaia Pro 3.1.3-c5)

  Light Probe Errors: 

https://www.linkpicture.com/q/Light-Probe.png

1) "EndLayoutGroup: BeginLayoutGroup must be called first.
UnityEngine.GUILayout:EndVertical ()
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,UnityEngine.GUIStyle,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (string,System.Action`1<bool>,bool,UnityEngine.GUILayoutOption[])
Gaia.GaiaLightingEditor:ProfileSettings (bool) (at Assets/Procedural Worlds/Gaia/Scripts/Scene Managment/Editor/GaiaLightingEditor.cs:323)
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,UnityEngine.GUIStyle,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
Gaia.GaiaLightingEditor:OnInspectorGUI () (at Assets/Procedural Worlds/Gaia/Scripts/Scene Managment/Editor/GaiaLightingEditor.cs:165)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"

2) "EndLayoutGroup: BeginLayoutGroup must be called first.
UnityEditor.EditorGUILayout:EndVertical ()
Gaia.GaiaLightingEditor:ProfileSettings (bool) (at Assets/Procedural Worlds/Gaia/Scripts/Scene Managment/Editor/GaiaLightingEditor.cs:358)
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,UnityEngine.GUIStyle,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
Gaia.GaiaLightingEditor:OnInspectorGUI () (at Assets/Procedural Worlds/Gaia/Scripts/Scene Managment/Editor/GaiaLightingEditor.cs:165)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"

3) "EndLayoutGroup: BeginLayoutGroup must be called first.
UnityEngine.GUILayout:EndVertical ()
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,UnityEngine.GUIStyle,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (UnityEngine.GUIContent,string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
PWCommon5.EditorUtils:Panel (string,System.Action`1<bool>,bool,bool,bool,UnityEngine.GUILayoutOption[])
Gaia.GaiaLightingEditor:OnInspectorGUI () (at Assets/Procedural Worlds/Gaia/Scripts/Scene Managment/Editor/GaiaLightingEditor.cs:165)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"

 

  Play Mode Errors:

PlayMode.png

1) "Assertion failed on expression: 'go.IsActive()'
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Gaia.GaiaUtils:GetMainMoonLight (bool) (at Assets/Procedural Worlds/Gaia/Scripts/Utils/GaiaUtils.cs:2110)
Gaia.ProceduralWorldsGlobalWeather:GetCurrentSettings () (at Assets/Procedural Worlds/Gaia/Gaia Pro/Weather/VFX/Scripts/ProceduralWorldsGlobalWeather.cs:6871)
Gaia.ProceduralWorldsGlobalWeather:DeinitializePostFX () (at Assets/Procedural Worlds/Gaia/Gaia Pro/Weather/VFX/Scripts/ProceduralWorldsGlobalWeather.cs:2493)
Gaia.ProceduralWorldsGlobalWeather:OnDisable () (at Assets/Procedural Worlds/Gaia/Gaia Pro/Weather/VFX/Scripts/ProceduralWorldsGlobalWeather.cs:1783)" 

2) "Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?)
The following scene GameObjects were found:
Moon Light"

Link to comment
Share on other sites

  • Solution

Regarding the light probe errors:

Do you see any new objects regarding to light probes as child of the terrains afterwards? The probes can only be seen when the associated object is selected:

image.png

I do get these errors as well, but those should not stop the probe spawning. These errors are an annoyance in the newer unity versions: Originally those would only appear when there was a legitimate error in the UI layout of a component / editor. But now those can also display when certain processing is performed within that editor, so that the UI is being interrupted while drawing. It is sometimes possible to fix this, sometimes it is difficult to justify the effort that would be associated with it. However those errors should not be the ones responsible if you did not get any global probes into your scene.

The second error seems to have to do with the moon light in the scene. It is a bit diifcult to tell why this is happening: At this position in the code Gaia tries to find the "Moon Light" game object in the scene, but the Unity function to find this game object itself runs into an error for unknown reasons. It should be possible to workaround this issue by selecting the "Gaia Weather" game object, then switching the Inspector to Debug mode. All the way on the bottom you should see a reference to the Moon Light game object. Drag and Drop the Moon Light from the scene into there, this should prevent this lookup for the MoonLight from happening in the first place.

unknown.png

Link to comment
Share on other sites

Yes, I saw the light probes they are spawned and moon problem is solved I don't get any errors at the play time. Thank you for your help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Tell a friend

    Love Unity 3D World & Game Creation Tools - Canopy - Procedural Worlds? Tell a friend!
  • Interesting Articles

    1. 2

      I'm getting tired of doing islands and craters

    2. 2

      I'm getting tired of doing islands and craters

    3. 1

      Problems with latest Gaia Update

    4. 1

      Adding shoreline or waterline effects, beaches, river banks, etc.

    5. 1

      Just upgraded my Canopy to Pro

×
×
  • Create New...