Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Multi selected ObiCollider is changed only one
#1
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.
Reply
#2
(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,
Reply
#3
Thanks for the quick reply. The response is very generous and reassuring.
Reply
#4
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.


Attached Files
.cs   SerializeProperty.cs (Size: 7.3 KB / Downloads: 1)
Reply
#5
Thank you for the fast patch.
Reply