UserData issue

Hello everyone, I am having an issue with adding a UserData to my geometry, I have created the sub class that inherits from UserData and gave it a constant GUID. The issue is that it works ONLY if the class of my custom UserData is in the same file of the command calling the obj.Geometry.UserData.Add(data), otherwise, if the class is in some other file, it raises a null exception, but nothing is actually null

Are you using the ScriptEditor, or are you writing a plug-in?

Custom UserData are plug-in specific, I think if you are using ScriptEditor each script is effectively its own plugin, @eirannejad correct?

yeah i realised everything has to live inside of a plugin regardless, so when i consolidated all the UserData derived classes under one plugin; they were read normally. thank you