Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryCreateInstance(out TContainer)

Tries to create a new instance of TContainer.
Read time 1 minuteLast updated 6 days ago

Definition

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

TryCreateInstance(T)

bool TryCreateInstance(out TContainer instance)

Parameters

instance

T
When this method returns, contains the created instance, if type construction succeeded; otherwise, the default value for
TContainer
.

Returns

Type

Description

bool
true
if a new instance of type
TContainer
was created; otherwise,
false
.