Skip to content

InterfaceTypeAttribute could not be found #2

@sfreeman2010

Description

@sfreeman2010

When first importing the package, I was getting an error that the InterfaceTypeAttribute in the InterfaceTypeDrawer.cs could not be found and I was possibly missing a namespace. First instinct was to use my quick actions in Visual Studio that automatically imported the System.Runtime.InteropServices namespace, since it includes a class actually called "InterfaceTypeAttribute"!

Long story short and to save you a headache, if you are getting the same error I had, when importing the package, view your UnityInterfaceSupport.Editor.asmdef file in the inspector and insure that the UnityInterfaceSupport assembly definition was properly linked (pic reference attached). When I imported the package, it was referencing a guid that was no longer there.

Thank you for creating this and sharing this with everyone. This has saved me headaches and is making development go by really smoothly while adding very little to achieve this! Cheers!

inspector

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions