I am using the "setProp" function from articy, in the output pin of a node, to set a boolean actor field from false to true :
setProp(getObj("MyCharacter"), "IsInPrison", true)
To track this variable in Unity I have added a LuaObserver on it (running on every update). But when the node is played at runtime, the LuaObserver doesn't "catch" the change. After a lot of attempts, I have noticed a strange thing while debugging these two lines at the same time:
Debug.Log (DialogueLua.GetActorField("MyCharacter", "IsInPrison").AsBool);
Debug.Log (DialogueManager.masterDatabase.GetActor("MyCharacter").AssignedField("IsInPrison").value);
-> false
-> true
Is it normal? Shouldn't the setProp function and the DialogueLua.SetActorField function do exactly the same thing?
Thanks for your help

Marc