Error using AddComponent

Fri 8. Mar 2019, 16:32

Hello, I added the Articy Flow Player component to an gameObject in the following way:
gameObject.AddComponent <ArticyFlowPlayer> ();
and the console showed me the following error:
NullReferenceException: Object reference not set to an instance of an object Articy.Unity.ArticyFlowPlayer.Update () (at <b66cb4cb06c542c9b186a27e269d3f49>: 0)

perhaps this component can not be added by code?
JoseDavid
 
Posts: 3
Joined: Mon 3. Dec 2018, 13:55

Re: Error using AddComponent

Mon 11. Mar 2019, 10:54

Hi JoseDavid,

thanks for reporting this issue, we will take a closer look into it.
As a quick workaround it seems to work if you assign a newly constructed “ArticyRef” object to the “startOn” field of the flow player, directly after adding the component.


Best regards,

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

Re: Error using AddComponent

Mon 11. Mar 2019, 13:02

That seems to work, thanks.
JoseDavid
 
Posts: 3
Joined: Mon 3. Dec 2018, 13:55

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