文档

Unity Engine

Unity Engine

ReplaceNameBased

Replaces the Prefab using name based lookup in the transform hierarchy.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
警告
Deprecated. This has turned into the more explicit APIs, SavePrefabAsset, SaveAsPrefabAsset, SaveAsPrefabAssetAndConnect
ReplaceNameBased = 2

Remarks

This is internally used by the model importer and is useful for relating game object hierarchy built from scratch to an existing Prefab without breaking connections.