| fieldName | フィールド名(例: <i>int counter;</i> であればフィールド名は "counter" です) |
static でないフィールドの値を取得します
フィールドの型はジェネリックス型です。
// Create a android.os.Message object, and retrieve the default value of the field 'what'.
function Start() {
var jo = new AndroidJavaObject("android.os.Message");
var valueString = jo.Get.<int>("what");
}
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Start() { AndroidJavaObject jo = new AndroidJavaObject("android.os.Message"); int valueString = jo.Get<int>("what"); } }