文档

Unity Engine

Unity Engine

fnPtr

The pointer to the native function that is called from the Java code.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule
public nint fnPtr

Remarks

Obtain this pointer by calling
Marshal.GetFunctionPointerForDelegate
, where the delegate refers to a method annotated with
MonoPInvokeCallback
attribute. The method must have the signature:
static ReturnType MyMethod(IntPtr jniEnv, IntPtr objectOrClass, ...);