Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ReplacePrefabOptions.ReplaceNameBased

Description

Replaces the prefab using name based lookup in the transform hierarchy.

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.