Documentation

Unity Engine

Unity Engine

ReplaceNameBased

Replaces the Prefab using name based lookup in the transform hierarchy.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Field
  • Namespace: UnityEditor
  • Assembly: UnityEditor
Warning
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.