SaintsField icon indicating copy to clipboard operation
SaintsField copied to clipboard

IMGUI: [Bug] duplicate array doesn't appear on empty columns

Open laurentopia opened this issue 7 months ago • 5 comments

Image

Image

laurentopia avatar Apr 19 '25 01:04 laurentopia

important to keep that consistent, especially when the columns become so cramped that it's near impossible to find background to right click on

laurentopia avatar Apr 19 '25 01:04 laurentopia

also, related, i noticed that the row being deleted and duplicated isn't the clicked row

Image Image

laurentopia avatar Apr 19 '25 01:04 laurentopia

Sorry, I don't get it. What is a duplicate array? Do you mean two same elements in the table but only one element is shown?

TylerTemp avatar Apr 23 '25 10:04 TylerTemp

Sorry, I don't get it. What is a duplicate array? Do you mean two same elements in the table but only one element is shown?

it should diplicate what's selected, not the first element of the array.

laurentopia avatar Apr 25 '25 19:04 laurentopia

here's a clear example, i removed table and duplicate works as expected: duplicate item i to i+1 at and push array

https://github.com/user-attachments/assets/a30ef96a-5b63-46be-85c9-674482d59019

https://github.com/user-attachments/assets/559acd72-01ab-49df-a662-253ff0c73423

laurentopia avatar May 15 '25 00:05 laurentopia

Hi,

this is because IMGUI & UI Toolkit requires to manually handle the right click context menu.

This feature has been added in dev, and will be released soon

Please note: Unity does not provide an API to copy/paste item, so I have to use reflection, and that paste reflection API sometimes does not work: this is not fixable unless Unity can provide a stable documented copy/paste editor API.

TylerTemp avatar May 23 '25 17:05 TylerTemp

This is fixed in 4.13.5, please have a try

TylerTemp avatar May 26 '25 09:05 TylerTemp

Perfect! thanks!!!

laurentopia avatar Jul 08 '25 23:07 laurentopia