TableMatrix Attribute on Mac

Issue #574 resolved
Jesper Turesson created an issue

Looking at the Gif bottom of this page
https://odininspector.com/attributes/table-matrix-attribute.

I’m using Mac and I can't right-click on already filled squares, can’t drag objects, ReadOnly parameter is doing nothing, LabledMatrix example from Attributes Example Window is setting the wrong box.

Nothing seems to work for med when using TableMatrix Attribute on Mac.

Recently TableMatrix stopped show all together. Started ny project, Downloaded Odin again and imported it. TableMatrix won't show in inspector at all. Used example code from Attributes Example Window

Unity 2019.2.0f and 2018.4.6f

EditorOnly enabled and disabled

MacOS Mojave 10.14.6

Comments (6)

  1. Bjarke Elias
    • changed status to open

    Hey, thanks bringing this one to our attention.

    We'll give it a shot on a Mac and see if we see any immediate issues on our end.

    In the meantime, could you share a code-snippet that reproduces the issue? Just so we are 100% on the same page, and know exactly what to to reproduce. For instance, the drag and drop showcased in the gif is actually a feature of the object-field and not the table matrix. Which means that it won't work for two-dim arrays of enums.

    And the issue about it not showing up in the inspector, might just be because you're not inheriting from SerializedScritpableObject, I would advice you to check out the SerializationDebugger for figuring that one out.

    https://odininspector.com/tutorials/serialize-anything/serialization-debugger

  2. Bjarke Elias

    One more question. What would your expected behavior be for right-clicking an already filled square?

  3. Jesper Turesson reporter

    What would your expected behaviour be for right-clicking an already filled square?
    On empty object square the options below shows. On already filled squares, nothing happens. Maybe if you could Copy a square that is not null.

    And the issue about it not showing up in the inspector, might just be because you're not inheriting from SerializedScriptableObject
    It worked, thank you. I inherited from ScriptableObject.

    Could you share a code-snippet that reproduces the issue? For instance, the drag and drop showcased in the gif is actually a feature of the object-field and not the table matrix. Which means that it won't work for two-dim arrays of enums.

    No code, I’m checking out your Table Matrix Example in the Attributes Example Window. It says that I should right-click and drag if I want to drag an object. But for me it wont work

  4. Bjarke Elias

    Thanks a lot!

    It's now fixed and confirmed working on MacOS Mojave with Unity 2018.1, 2019.2 and 2019.3 beta.

    There will be a Odin Inspector v2.1.5 available on the Odin Website later today.

  5. Bjarke Elias

    I ran into a couple of other issues, I’ll have to delay the fix for the website a bit, sorry about that. I can however send you a hotfix if you need it, You can send us an email from the website, or PM me on Discord.

    Have a great weekend 🙂

  6. Log in to comment