文档

Unity Engine

Unity Engine

Instantiate

Creates a new instance of the specified T.
阅读时间1 分钟最后更新于 2 天前

Definition

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.