segross / UnrealImGui

Unreal plug-in that integrates Dear ImGui framework into Unreal Engine 4.
MIT License
666 stars 211 forks source link

Game.ini and PIEContext0.ini ,The format is different ,Please help me #79

Open yuanlei88 opened 1 year ago

yuanlei88 commented 1 year ago

PIEContext0. ini in PIE records DockId, but the packaged Game.ini does not have ID information, resulting in Layout being unable to save and load correctly! Please help me!

PIEContext0.ini---------->> [Window][DockSpaceViewport_11111111] Pos=0,0 Size=3831,2040 Collapsed=0

[Window][Debug##Default] Pos=60,60 Size=400,400 Collapsed=0

[Window][start] Pos=1,1501 Size=599,550 Collapsed=0

[Window][Dear ImGui Demo] Pos=3281,0 Size=550,1021 Collapsed=0 DockId=0x00000004,0

[Window][ImPlot Demo] Pos=0,0 Size=598,2040 Collapsed=0 DockId=0x00000001,0

[Window][Hello World!] Pos=3281,1023 Size=550,1017 Collapsed=0 DockId=0x00000005,0

[Docking][Data] DockSpace ID=0x8B93E3BD Window=0xA787BDB4 Pos=0,0 Size=3831,2040 Split=X DockNode ID=0x00000006 Parent=0x8B93E3BD SizeRef=3288,2040 Split=X DockNode ID=0x00000001 Parent=0x00000006 SizeRef=598,2040 HiddenTabBar=1 Selected=0xB903C8C9 DockNode ID=0x00000002 Parent=0x00000006 SizeRef=3231,2040 CentralNode=1 DockNode ID=0x00000003 Parent=0x8B93E3BD SizeRef=550,2040 Split=Y DockNode ID=0x00000004 Parent=0x00000003 SizeRef=550,511 Selected=0xE87781F4 DockNode ID=0x00000005 Parent=0x00000003 SizeRef=550,509 HiddenTabBar=1 Selected=0x93632803

Game.ini --->> [Window][DockSpaceViewport_11111111] Pos=0,0 Size=2560,1440 Collapsed=0

[Window][Dear ImGui Demo] Pos=2010,0 Size=550,888 Collapsed=0

[Window][Debug##Default] Pos=60,60 Size=400,400 Collapsed=0

[Window][start] Pos=2010,890 Size=550,550 Collapsed=0

[Window][ImPlot Demo] Pos=0,0 Size=618,992 Collapsed=0

[Window][Hello World!] Pos=0,994 Size=618,446 Collapsed=0

[Window][##TOAST0] Pos=983,100 Size=594,83 Collapsed=0

[Docking][Data] DockSpace ID=0x8B93E3BD Window=0xA787BDB4 Pos=0,0 Size=2560,1440 CentralNode=1

yuanlei88 commented 1 year ago

I carefully observed the situation where the problem occurred and found that when using the Dock version of ImGui to initialize and read Game.ini, the corresponding ID was not generated, so the layout could not be read correctly based on the ID. However, I am not sure when and where this reading was run. Please help me. Thank you