Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ReplaceNameBased

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

Definition

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