AllocObject(nint)
Allocates a new Java object without invoking any of the constructors for the object.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
AllocObject(IntPtr)
public static nint AllocObject(nint clazz)
Parameters
The Java class to instantiate.
Returns
Type | Description |
|---|---|
| IntPtr | A local reference to the newly allocated object. |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)