LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

ReplacePrefabOptions

enumeration

Description

Flags for the PrefabUtility.ReplacePrefab function.

Properties

DefaultReplaces prefabs by matching pre-existing connections to the prefab.
ConnectToPrefabConnects the passed objects to the prefab after uploading the prefab.
ReplaceNameBasedReplaces the prefab using name based lookup in the transform hierarchy.