Serialized fields that are exposed in readonly properties are editable

Issue #83 resolved
Shane Padgett created an issue

Unity 5.6.0f3. Odin 1.0.0.3.

Image of issue and project attached. Project includes Odin 1.0.0.3 already in it.

When using the ShowInInspector and ReadOnly attributes on a property that returns a field marked as SerializeField, the base property draws as ReadOnly, but the field that the property returns is editable.

Opening the project I have attached and opening the "Problem" scene you will see the issue on the gameobject that is in the hierarchy.

Comments (5)

  1. Shane Padgett reporter

    Hello. Just an FYI, the zip file didn't just contain Odin, it contained the project to show how to replicate the issue.

  2. Log in to comment