Get
Get the value of a field in an object (non-static).
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
Get<T>(string)
Get the value of a field in an object (non-static).
public FieldType Get<FieldType>(string fieldName)
Parameters
The name of the field (e.g. int counter; would have fieldName = "counter").
Returns
Type | Description |
|---|---|
| T |
Remarks
The generic parameter determines the field type.
Get<T>(IntPtr)
Get the value of a field in an object (non-static).
public FieldType Get<FieldType>(nint fieldID)
Parameters
The ID of the field to get.
Returns
Type | Description |
|---|---|
| T |
Remarks
The generic parameter determines the field type.