ドキュメント

Unity Engine

Download Unity

Unity Engine

GetStaticStringField(nint, nint)

Returns the value of a static field of an object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

GetStaticStringField(IntPtr, IntPtr)

public static string GetStaticStringField(nint clazz, nint fieldID)

Parameters

clazz

The Java class that declares the static field.

fieldID

The ID of the field.

Returns

Type

Description

stringThe value of the static field, as a managed string.

Remarks

This is a convenience function that calls GetStaticObjectField() with the same parameters, but creates a managed string from the result.