sendMessage

fun sendMessage(gameObject: String, methodName: String, funcParam: String)

Sends a message to a specific GameObject within the Unity Player instance, calling the specified method with the provided parameter.

Parameters

gameObject

The name of the GameObject to send the message to.

methodName

The name of the method to invoke on the GameObject.

funcParam

The parameter to pass to the invoked method, as a string.