UnityEngineScaffold

fun UnityEngineScaffold(modifier: Modifier = Modifier, unityEngineModifier: Modifier = Modifier, onUnityEngineCreated: () -> Unit = {}, content: @Composable BoxScope.() -> Unit)

Composable function for creating a layout with a Unity Engine view and additional content.

Parameters

modifier

Modifier to apply to the overall layout.

unityEngineModifier

Modifier to apply specifically to the Unity Engine view.

onUnityEngineCreated

Optional callback invoked when the Unity Engine is created and ready.

content

The composable content to display alongside the Unity Engine.