Jump to content

Renaming session manager has broken the viewport and spammed errors


OscarB

Recommended Posts

Hi,

I have renamed the 'Name' section in my session manager within my scene and suddenly the viewport has gone grey and this error is spammed in console:

NullReferenceException: Object reference not set to an instance of an object
Gaia.Stamper.GetCurrentTerrain () (at Assets/Procedural Worlds/Gaia/Scripts/StampingSystem/Stamper.cs:826)
Gaia.Stamper.DrawStampPreview (System.Collections.Generic.List`1[T] worldMapStamperSettings, System.Boolean isWorldMapPreview) (at Assets/Procedural Worlds/Gaia/Scripts/StampingSystem/Stamper.cs:1781)
Gaia.StamperEditor.DuringSceneGUI (UnityEditor.SceneView obj) (at Assets/Procedural Worlds/Gaia/Scripts/Editor/StamperEditor.cs:1950)
UnityEditor.SceneView.CallOnSceneGUI () (at <9dccbc75b8a249d78358fb192f335670>:0)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <9dccbc75b8a249d78358fb192f335670>:0)
UnityEditor.SceneView.DoOnGUI () (at <9dccbc75b8a249d78358fb192f335670>:0)
UnityEditor.SceneView.OnSceneGUI () (at <9dccbc75b8a249d78358fb192f335670>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <f27c4d00c2c54006a12ee4466f2538da>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <a7f6f3a1791146c5a8c571ac1afd5641>:0)

Is there a way to revert my renaming and return the scene to normal?

Thanks

Link to comment
Share on other sites

The session may have just lost connection to the terrain. 
You should be able to just reconnect it to the session manager. 

All you need to do is open the session manager and drag the terrain back into it. 

 

Link to comment
Share on other sites

On 9/6/2024 at 11:29 PM, Bryan said:

The session may have just lost connection to the terrain. 
You should be able to just reconnect it to the session manager. 

All you need to do is open the session manager and drag the terrain back into it. 

 

Hi Bryan

Are you referring to the session manager component attached to a game object within the scene?

Currently when I add the session data back (using the default sample one in this case) in the UI breaks and becomes unresponsive:
image.png.5ab886d75de4946f27b5595f855aa01b.png

There is also no field that will accept the terrain as a valid place to drag?

Link to comment
Share on other sites

Oh hang on, I just looked in the gaia terrain object within the scene and it is missing its terrain data inside the terrain component. It seems to have vanished from the project when I renamed the session 🫠

Link to comment
Share on other sites

8 hours ago, OscarB said:

Oh hang on, I just looked in the gaia terrain object within the scene and it is missing its terrain data inside the terrain component. It seems to have vanished from the project when I renamed the session 🫠

Yeah thats it 

I would say reconnect it there 

That should fix it 

 

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
  • Tell a friend

    Love Canopy - Procedural Worlds? Tell a friend!
  • Need help?

    We work with some of the biggest brands in global gaming, automotive, technology, and government to create environments, games, simulations, and product launches for desktop, mobile, and VR.

    Our unique expertise and technology enable us to deliver solutions that look and run better at a fraction of the time and cost of a typical project.

    Check out some of our non-NDA work in the Gallery, and then Contact Us to accelerate your next project!

×
×
  • Create New...