Version: 2022.3

PrefabOverridesOptions

enumeration

切换到手册

描述

Flags that can be used to control which overrides shoud be kept or cleared when using ReplacePrefabAssetOfPrefabInstance.

变量

KeepAllPossibleOverridesKeep all possible overrides (default value).
ClearNonDefaultPropertyOverridesClear any non-default property overrides from the Prefab instance.
ClearAddedComponentsClear any added Component overrides from the Prefab instance.
ClearRemovedComponentsClear any removed Component overrides from the Prefab instance.
ClearAddedGameObjectsClear any added GameObject overrides from the Prefab instance.
ClearRemovedGameObjectsClear any removed GameObject overrides from the Prefab instance.
ClearAllOverridesExceptPropertyOverridesClear all added and removed GameObjects and Components but keep all possible property overrides.
ClearAllNonDefaultOverridesClear any non-default property overrides from the Prefab instance.