[Unity] Save Problem
whenever i save the project or press Play NoesisGUI throws this error
at first i thought this will go away just like any error but it keeps appearing every time for 1 month
and NoesisGUI is always updated
Code: Select all
NullReferenceException: Object reference not set to an instance of an object
Noesis.NoesisGUI_PINVOKE.new_Label () (at Assets/Plugins/NoesisGUI/Scripts/Proxies/NoesisGUI_PINVOKE.cs:66124)
Noesis.Label.CreateCPtr (System.Type type, System.Boolean& registerExtend) (at Assets/Plugins/NoesisGUI/Scripts/Proxies/Label.cs:39)
Noesis.BaseComponent..ctor () (at Assets/Plugins/NoesisGUI/Scripts/Proxies/BaseComponentExtend.cs:19)
Noesis.DependencyObject..ctor ()
Noesis.Visual..ctor ()
Noesis.UIElement..ctor ()
Noesis.FrameworkElement..ctor ()
Noesis.Control..ctor ()
Noesis.ContentControl..ctor ()
Noesis.Label..ctor ()
InventoryNew..ctor ()
UnityEditor.DockArea:OnGUI()
at first i thought this will go away just like any error but it keeps appearing every time for 1 month
and NoesisGUI is always updated
-
sfernandez
Site Admin
- Posts: 3184
- Joined:
Re: [Unity] Save Problem
Hi,
It seems you are trying to create an InventoryNew label control when NoesisGUI is not initialized. Our framework only works in Play mode if you attach a NoesisGUIPanel component in your scene.
Could you please verify it?
It seems you are trying to create an InventoryNew label control when NoesisGUI is not initialized. Our framework only works in Play mode if you attach a NoesisGUIPanel component in your scene.
Could you please verify it?
Re: [Unity] Save Problem
nope i never created label it's just 2 textboxes and button for loginHi,
It seems you are trying to create an InventoryNew label control when NoesisGUI is not initialized. Our framework only works in Play mode if you attach a NoesisGUIPanel component in your scene.
Could you please verify it?
Code: Select all
<Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Viewbox Stretch="None">
<Grid>
<TextBox x:Name="txt_Username" Tooltip="Username" Text="" HorizontalAlignment="Left" Height="23" Margin="0,35,0,0" TextWrapping="NoWrap" VerticalAlignment="Top" Width="120" />
<PasswordBox x:Name="txt_Password" Tooltip="Password" HorizontalAlignment="Left" Height="23" Margin="0,82,0,0" VerticalAlignment="Top" Width="120" />
<Button x:Name="btn_Login" Content="Login" HorizontalAlignment="Left" Margin="0,126,0,0" VerticalAlignment="Top" Width="75" />
<TextBlock x:Name="txtInfo" TextWrapping="Wrap" FontSize="14" VerticalAlignment="Top" Margin="5,190,0,0" TextAlignment="Center" HorizontalAlignment="Left" />
</Grid>
</Viewbox>
</Grid>
Re: [Unity] Save Problem
Could you paste the code for the ctor of InventoryNew?InventoryNew..ctor ()
UnityEditor.DockArea:OnGUI()
Re: [Unity] Save Problem
sorry for replying after 2 weeks but i had some real life business and i fixed the error Thank youCould you paste the code for the ctor of InventoryNew?InventoryNew..ctor ()
UnityEditor.DockArea:OnGUI()
Re: [Unity] Save Problem
Thanks for updating!
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests