Version: 5.5
public FieldType GetStatic (string fieldName);

パラメーター

fieldName フィールド名(例: int counter; であればフィールド名は "counter" です)

説明

static のフィールドの値を取得します

フィールドの型はジェネリックス型です。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { AndroidJavaObject jo = new AndroidJavaObject("org.example.StaticFields"); string globalName = jo.GetStatic<string>("globalName"); } }