You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GameResource("Face Connection","fconn","A connection from a submodule face.", Icon ="join_left")]publicclassTestResource:GameResource{public ConnectionData[] Connections {get;set;}= Array.Empty<ConnectionData>();}publicclassConnectionData{privateintNumber{get;set;}}
This appears correctly in the editor but hitting the + button throws this error:
Collection was of a fixed size.
System.NotSupportedException: Collection was of a fixed size.
at System.Array.System.Collections.IList.Insert(Int32 index, Object value)
at Sandbox.SerializedList.Insert(Int32 index, Object value) in C:\build\_work\sbox\sbox\engine\Sandbox.System\SerializedObject\SerializedList.cs:line 80
at Sandbox.SerializedList.Add(Object value) in C:\build\_work\sbox\sbox\engine\Sandbox.System\SerializedObject\SerializedList.cs:line 63
at Editor.ListControlWidget.AddEntry() in C:\My Stuff\Steam\steamapps\common\sbox\addons\tools\Code\Widgets\ControlWidgets\ListControlWidget.cs:line 83
at Editor.Widget.OnMouseClick(MouseEvent e) in C:\build\_work\sbox\sbox\engine\Sandbox.Tools\Qt\Widget.Events.cs:line 103
at Editor.IconButton.OnMouseClick(MouseEvent e) in C:\build\_work\sbox\sbox\engine\Sandbox.Tools\Widgets\IconButton.cs:line 64
at Editor.Widget.OnMouseReleased(MouseEvent e) in C:\build\_work\sbox\sbox\engine\Sandbox.Tools\Qt\Widget.Events.cs:line 75
at Managed.SourceTools.Exports.Editor_Widget_InternalMouseReleaseEvent(UInt32 self, IntPtr e) in C:\build\_work\sbox\sbox\engine\Sandbox.Tools\Interop.Tools.cs:line 22633
To Reproduce
Open the test repo
Try adding a new element to the array in the resource
Describe the bug
I have a very simple resource set up:
This appears correctly in the editor but hitting the + button throws this error:
To Reproduce
Expected behavior
Should work as expected!
Media/Files
bug_repo.zip
Additional context
No response
The text was updated successfully, but these errors were encountered: