function GetStatic.<FieldType> (fieldName : string) : FieldType
Parameters
Name | Description |
fieldName |
The name of the field (e.g. int counter; would have fieldName = "counter")
|
Description
Get the value of a static field in an object type.
The generic parameter determines the field type.
function Start() {
var jo = new AndroidJavaObject("org.example.StaticFields");
var globalName = jo.Get.<string>("globalName");
}