SendMessage randomly stopped working for just one character
Posted: Wed Sep 20, 2023 12:51 pm
I opened my project today and one of my characters is not receiving messages from sendmessage. It was working fine when I left it last night. It just seems to have randomly stopped working again today. This has happened before a few weeks ago but seemed to fix itself after I restarted the engine.
For context:
I have a sequence with characters talking. On one dialogue entry I have 3 sendmessage calls to 3 different characters.
SendMessage(SetLeft, ,Char1);
SendMessage(AddFinishWithChar3, ,Char2);
SendMessage(WalkToChar2, ,Char3);
The first 2 characters do their functions properly. Char3 does not.
I've tried restarting the engine.
All characters use the same prefab.
I've reordered the sendmessage calls in the sequence.
I've tested that other sendmessage calls to this character do not work.
I've verified that names of the functions match.
There is no error in the inspector.
I've double checked that this is the only object in the scene with the name 'Char3.'
I've deleted the character and remade them from scratch.
What did work is renaming the character transform to 'Char4' and updating the send message accordingly but I'd rather not go through all of my dialogue and rename the character. All the characters in the scene are named after their dialogue actors in the database and I'd prefer to keep it that way.
It is only this one character for some reason. Is there a special way to register an object as a receiver for sendmessage that I'm missing?
Thanks in advance for your help!
For context:
I have a sequence with characters talking. On one dialogue entry I have 3 sendmessage calls to 3 different characters.
SendMessage(SetLeft, ,Char1);
SendMessage(AddFinishWithChar3, ,Char2);
SendMessage(WalkToChar2, ,Char3);
The first 2 characters do their functions properly. Char3 does not.
I've tried restarting the engine.
All characters use the same prefab.
I've reordered the sendmessage calls in the sequence.
I've tested that other sendmessage calls to this character do not work.
I've verified that names of the functions match.
There is no error in the inspector.
I've double checked that this is the only object in the scene with the name 'Char3.'
I've deleted the character and remade them from scratch.
What did work is renaming the character transform to 'Char4' and updating the send message accordingly but I'd rather not go through all of my dialogue and rename the character. All the characters in the scene are named after their dialogue actors in the database and I'd prefer to keep it that way.
It is only this one character for some reason. Is there a special way to register an object as a receiver for sendmessage that I'm missing?
Thanks in advance for your help!