When setting a field that uses a custom value drawer by using Unity's picker, a different field can also be affected.

Issue #461 resolved
Jakub Seidl created an issue

When I try to set a field of type Item, which uses a custom value drawer, the following Item field can also be set to to the same value. The custom value drawer for Item displays an object field of type ItemAsset instead, which is used to set the Item - the value is determined by and compared with the Item's reference to its asset.

A project where the issue is recreated is attached, along with 4 short videos demonstrating the behaviour. Though it happened in a similar way in my original project, the error occurred in a slightly different way here (described in the project with InfoBoxes). The videos "Original 1-3" show the behaviour in the original project and "Recreated 1" shows the different behaviour in this project.

Comments (1)

  1. mSkull001

    For some reason, two fields would get the same ObjectPicker instance assigned because they somehow had the same select button ID.

    I've changed this behaviour now so that ObjectPickers are assigned based on the object picker id, instead of the select button id, and that seems to have fixed the issue.

    You can reach out to us to get a build with this fix if you want it :)

  2. Log in to comment