error using Assembly Definitions

Mon 3. Dec 2018, 14:37

Hi,

I am using Assembly Definitions in my Unity project, but three logs errors occur when I create the Assembly in the ArticyContent folder:

NullReferenceException: Object reference not set to an instance of an object
Articy.Unity.ArticyTypeSystem.OnBeforeSerialize ()

ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[System.String].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
Articy.Unity.ArticyTypeSystem.OnAfterDeserialize ()

NullReferenceException: Object reference not set to an instance of an object
ArticyReader.Start () (at Assets/MyScripts/ArticyReader.cs:87)

I probed in an empty project, and the error still occur.
I put the Assembly Definition in this folder because otherwise I cant use the scripts for using the Templates mades in Articy (using Articy.Project_Name;), with the Assembly I can use it but I get the erros.
Is there any way I can use the Assembly Definition or is not possible?

Thanks.
JoseDavid
 
Posts: 3
Joined: Mon 3. Dec 2018, 13:55

Re: error using Assembly Definitions

Tue 4. Dec 2018, 10:19

Hi JoseDavid,

Unfortunately, it is currently not supported to use Assembly Definitions together with our plugin. But we keep this in mind for a possible feature of a future version.

Best regards,

Chris
User avatar
[Articy] Christian Schildt
Articy Staff
Articy Staff
 
Posts: 62
Joined: Tue 16. Jan 2018, 17:03
Location: Bochum

Re: error using Assembly Definitions

Wed 30. Oct 2019, 20:54

Update: Meanwhile it is possible to use assembly definitions together with the plugin by enabling “Use assembly definitions” in the plugin settings. This setting will create an assembly definition file for the code that gets generated by plugin, which then can be referenced by other assembly defininitions.
User avatar
[Articy] Christian Schildt
Articy Staff
Articy Staff
 
Posts: 62
Joined: Tue 16. Jan 2018, 17:03
Location: Bochum

Return to articy:draft Unity Importer

Who is online

Users browsing this forum: No registered users and 17 guests

Who We Are
Contact Us
Social Links