Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TypeUtility

Utility class around Type.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Class
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule
public static class TypeUtility

Static Methods

Method

Description

CanBeInstantiatedReturns
true
if the specified type is instantiatable.
GetRootTypeUtility method to return the base type.
GetTypeDisplayNameUtility method to get the name of a type which includes the parent type(s).
InstantiateCreates a new instance of the specified
T
.
InstantiateArrayCreates a new instance of an array with the given count.
SetExplicitInstantiationMethodSets an explicit instantiation method for the
T
type.
TryInstantiateCreates a new instance of the specified
T
.
TryInstantiateArrayTries to create a new instance of an array with the given count.