Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Instantiate

Creates a new instance of the specified T.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule

Instantiate<T>()

Creates a new instance of the specified
T
.
public static T Instantiate<T>()

Returns

Type

Description

TA new instance of the
T
.

Instantiate<T>(Type)

Creates a new instance of the given type type and returns it as
T
.
public static T Instantiate<T>(Type derivedType)

Parameters

derivedType

The type we want to create a new instance of.

Returns

Type

Description

Ta new instance of the
T
type.