Null reference errors with ASMDEF

k111111

New member
Hi, I am trying to use ASMDEF for my own scripts. When I put my own scripts under an ASMDEF I get a null reference error when trying to use GetAttribute on an item. I can access ItemInfo without errors.

The item is in the inventory, loaded in the editor.

I have added Opsive ASMDEF references to my ASMDEF file.

Thanks for any help.
 

Attachments

  • asmdef references.png
    asmdef references.png
    17.4 KB · Views: 6
  • with asmdef.png
    with asmdef.png
    81.2 KB · Views: 5
  • without asmdef.png
    without asmdef.png
    90.8 KB · Views: 6
It is possible that it is confusing our Attribute type with the System.Attribute type. They are not the same thing.
I'm not sure what is wrong here.
 
Top