AttachCurrentThread()
Attaches the current thread to a Java (Dalvik) VM.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
public static int AttachCurrentThread()
Returns
Type | Description |
|---|---|
| int | Zero on success. A negative number on failure. |
Remarks
A thread must be attached to the VM before any other JNI calls can be made.
Additional Resources: Java Native Interface Specification (Oracle)