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.

PrefabUtility.SetPropertyModifications

static function SetPropertyModifications(targetPrefab: Object, modifications: PropertyModification[]): void;
static void SetPropertyModifications(Object targetPrefab, PropertyModification[] modifications);
static def SetPropertyModifications(targetPrefab as Object, modifications as PropertyModification[]) as void

Description

Assigns all modifications that are applied to the prefab instance compared to the parent prefab.