Problem with setProp script

Mon 14. Jan 2019, 15:30

I try to change a Location inside a template's slot for locations using current script:
Code: Select all
setProp(getObj("chr_Nelly"), "NPCLocation.Location",getObj("Loc_Torchlight"))

but when I launch the script in my Unity project I get the following error:
Code: Select all
InvalidCastException: Specified cast is not valid.
Articy.Articytest.Features.NPCLocationFeature.setProp (System.String aProperty, System.Object aValue) (at Assets/ArticyContent/Generated/Features/NPCLocationFeature.cs:102)


I am doing something wrong? Is not possible to change this type of properties through a script? Is some kind of bug?
Thank you for your time.
Attachments
nellyconf.jpg
Current object configuration
nellyconf.jpg (64.83 KiB) Viewed 14430 times
Dureo
 
Posts: 3
Joined: Mon 14. Jan 2019, 15:04

Re: Problem with setProp script

Mon 14. Jan 2019, 16:45

Hi Dureo,

Yes, this is a bug. We could reproduce it and will fix it as soon as possible. Thanks for reporting.

Best regards,

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

Re: Problem with setProp script

Tue 15. Jan 2019, 08:38

Hi Christian,

can you give me an estimated time for the fix or I need to do a workaround?

Thank you for your fast response.
Dureo
 
Posts: 3
Joined: Mon 14. Jan 2019, 15:04

Re: Problem with setProp script

Tue 15. Jan 2019, 12:51

Hi Dureo,

I can’t give you a specific estimated time, but we have planned to release an update for the Unity plugin very soon.


Best regards,

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

Re: Problem with setProp script

Wed 16. Jan 2019, 16:23

Hi Dureo,

I just want to inform you that we released an update for the Unity plugin, which contains a fix that should solve your problem.


Best regards,

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

Re: Problem with setProp script

Wed 30. Jan 2019, 04:58

I have also faced the same problem on my Windows 7 system. It may be the Windows error. So, I firstly updated the system, but it was of no benefit. I have searched the Internet a lot and learned about Windows update error code 8007000e. I think it is the same problem that we are facing.
nickrobin
 
Posts: 1
Joined: Wed 30. Jan 2019, 04:40

Return to articy:draft Unity Importer

Who is online

Users browsing this forum: No registered users and 19 guests

Who We Are
Contact Us
Social Links