Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

ReplacePrefabOptions

Description

Flags for the PrefabUtility.ReplacePrefab function.

Variables

Default Replaces prefabs by matching pre-existing connections to the prefab.
ConnectToPrefab Connects the passed objects to the prefab after uploading the prefab.
ReplaceNameBased Replaces the prefab using name based lookup in the transform hierarchy.