GetStatic
Get the value of a static field in an object type.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
GetStatic<T>(string)
Get the value of a static field in an object type.
public FieldType GetStatic<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.
GetStatic<T>(IntPtr)
Get the value of a static field in an object type.
public FieldType GetStatic<FieldType>(IntPtr fieldID)
Parameters
The ID of the field to get.
Returns
Type | Description |
|---|---|
| T |
Remarks
The generic parameter determines the field type.