ドキュメント

Unity Engine

Download Unity

Unity Engine

SetStaticObjectField(nint, nint, nint)

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

Definition

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

SetStaticObjectField(IntPtr, IntPtr, IntPtr)

public static void SetStaticObjectField(nint clazz, nint fieldID, nint val)

Parameters

clazz

The Java class that declares the static field.

fieldID

The ID of the field.

The value to assign to the field.

Remarks

The value to set is a reference to either a \<tt\>java.lang.Object\</tt\>, or a subclass thereof.