Documentation

Unity Engine

Unity Engine

GetFieldID(nint, string, string)

Returns the field ID for an instance (nonstatic) field of a class.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

GetFieldID(IntPtr, string, string)

public static nint GetFieldID(nint clazz, string name, string sig)

Parameters

clazz

The Java class to scan.

name

The name of the field, as declared in Java.

The JNI field signature.

Returns

Type

Description

IntPtrThe field ID, or zero if the field couldn't be found.

Remarks