UnityPlayer.UnitySendMessage param string is limited to 1024 bytes

Hi All,

I am trying to port my current Android game to work with Unity and I am using the UnityPlayer.UnitySendMessage(object, method, param) method to notify about something within my game to the Unity javascript layer. It seems that the string param that I pass can not exceed the 1024 bytes!?
I could not find anything about this on the web or in Unity manual so i don’t know if I am doing something wrong or is there some kind of limitation that nobody is talking about…:frowning:

Please help!

If this is some kind of engine limitation, what is a best practice alternative to send more than 1024 bytes of data from java (Android) to Unity?

Thanks

Send two messages.

Is there any other solution besides sending and accumulating messages on the Unity side?

write it to a temporary file in your application cache

Hi,
Is this limitation is still there?
I am trying to use the below feature, for that I am searching for the communication mechanism and its limitations.