Documentation

Unity Engine

Download Unity

Unity Engine

AllocObject(nint)

Allocates a new Java object without invoking any of the constructors for the object.
Read time 1 minuteLast updated a month ago

Definition

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

AllocObject(IntPtr)

public static nint AllocObject(nint clazz)

Parameters

clazz

The Java class to instantiate.

Returns

Type

Description

IntPtrA local reference to the newly allocated object.

Remarks