DrifterUnityMethod

@Target(allowedTargets = [AnnotationTarget.FUNCTION])
annotation class DrifterUnityMethod(val name: String = "", val parameters: Array<String> = [])

Marks a function as a method exposed to the Unity environment.

This annotation allows you to declare functions within your Kotlin code that can be accessed and called from Unity scripts. It specifies the name of the exposed method in Unity and the names of its parameters.

Properties

Link copied to clipboard

The name of the exposed method in Unity. Defaults to the function name with first letter uppercase.

Link copied to clipboard

An array of parameter names expected by the exposed method in Unity.