Version: 2023.1

ConvertToPrefabInstanceSettings.gameObjectsNotMatchedBecomesOverride

切换到手册
public bool gameObjectsNotMatchedBecomesOverride ;

描述

If a GameObject is not matched up then it can become an added GameObject on the new Prefab instance. This property is only used when used together with ObjectMatchMode.ByHierarchy.

If this property is false then the GameObject will be deleted if it doesn't match a GameObject on the PrefabAsset. See Also: componentsNotMatchedBecomesOverride, recordPropertyOverridesOfMatches.