GetStaticStringField(nint, nint)
Returns the value of a static field of an object.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
GetStaticStringField(IntPtr, IntPtr)
public static string GetStaticStringField(nint clazz, nint fieldID)
Parameters
Returns
Type | Description |
|---|---|
| string |
Remarks
This is a convenience function that calls GetStaticObjectField() with the same parameters, but creates a managed string from the result.
Additional Resources: AndroidJNI.GetStaticObjectField, Java Native Interface Specification (Oracle)