- 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.