Obi Official Forum
Bug / Crash Multi selected ObiCollider is changed only one - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: General (https://obi.virtualmethodstudio.com/forum/forum-5.html)
+--- Thread: Bug / Crash Multi selected ObiCollider is changed only one (/thread-4344.html)



Multi selected ObiCollider is changed only one - asimofu_ok - 28-08-2024

Sorry for repeating myself, but this time it is about Obi7's ObiCollider.

When I try to change Thickness or ObiCollisionMaterial while multiple objects with ObiCollider are selected, it seems that only one of the selected objects is changed.
My Unity version is 2022.3.42.


RE: Multi selected ObiCollider is changed only one - josemendez - 28-08-2024

(28-08-2024, 11:39 AM)asimofu_ok Wrote: Sorry for repeating myself, but this time it is about Obi7's ObiCollider.

Hi,

No problem, if you think you've found a bug the best thing to do is report it so it can be detected and fixed.

(28-08-2024, 11:39 AM)asimofu_ok Wrote: When I try to change Thickness or ObiCollisionMaterial while multiple objects with ObiCollider are selected, it seems that only one of the selected objects is changed.
My Unity version is 2022.3.42.


Thanks for reporting this! I could reproduce it, seems to be a problem with the use of [SerializeProperty] together with multi selection: only one of the objects gets the property backing field updated. Will find a workaround and get back to you with a patch.

kind regards,


RE: Multi selected ObiCollider is changed only one - asimofu_ok - 28-08-2024

Thanks for the quick reply. The response is very generous and reassuring.


RE: Multi selected ObiCollider is changed only one - josemendez - 28-08-2024

Hi,

Please find attached a patched version of SerializeProperty.cs. Replace the one in your project with this, it should solve the problem.

let me know if I can be of further help,

kind regards.


RE: Multi selected ObiCollider is changed only one - asimofu_ok - 28-08-2024

Thank you for the fast patch.