UnityEngineFactory

Factory for creating Unity Player instances.

This interface allows for the creation of Unity Players of different versions or implementations. It encapsulates the logic of selecting and instantiating the appropriate Unity Player based on specific requirements or configurations.

Properties

Link copied to clipboard
abstract val version: String

The version of Unity supported by this factory.

Functions

Link copied to clipboard
abstract fun createUnityPlayer(contextWrapper: ContextWrapper, options: UnityOptions = UnityOptions()): IUnityPlayer

Creates a new Unity Player instance. Creates a new Unity Player instance, optionally applying configuration options.

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