Version: Unity 6 (6000.0)
LanguageEnglish
  • C#

TypeUtility.CanBeInstantiated

Declaration

public static bool CanBeInstantiated(Type type);

Parameters

Description
type The type to query.

Returns

bool true if the given type is instantiatable.

Description

Returns true if the specified type is instantiatable.

Instantiatable is defined as either having a default or implicit constructor or having a registered instantiation method.


Declaration

public static bool CanBeInstantiated();

Returns

bool true if type T is instantiatable.

Description

Returns true if type T is instantiatable.

Instantiatable is defined as either having a default or implicit constructor or having a registered instantiation method.