UnitySendMessage

open fun UnitySendMessage(gameObject: String, methodName: String, funcParam: String)

Sends a message to a Unity GameObject with a specified method name and parameter.

Parameters

gameObject

The name of the Unity GameObject to receive the message.

methodName

The name of the method to invoke on the GameObject.

funcParam

The parameter to pass to the method as a UTF-8 encoded string.

Throws

If native libraries are not loaded.