UnityEngine

Provides a single point of access for interacting with the Unity Player instance.

This object serves as a facade, delegating all calls to the currently registered UnityEngineFactory through the LocalUnityEngine registry.

Use this object to send messages to Unity GameObjects, access native Unity functionalities, or perform other Unity-related operations from your Kotlin code.

Functions

Link copied to clipboard
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.