ドキュメント

Unity Engine

Unity Engine

Instantiate

Creates a new instance of the specified T.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.