文档

Unity Engine

Unity Engine

Instantiate()

Implement this method to provide custom type instantiation for the container type.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Properties
  • Assembly: UnityEngine.PropertiesModule
protected virtual TContainer Instantiate()

Returns

Type

Description

T

Remarks

You MUST also override PropertyBag<TContainer>.InstantiationKind to return
ConstructionType.PropertyBagOverride
for this method to be called.