Version 2.1.0.0

PrefabModification class

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public sealed class PrefabModification
An Odin-serialized prefab modification, containing all the information necessary to apply the modification.
Inheritance
  • System.Object
  • PrefabModification

Constructors

PrefabModification()
public PrefabModification()

Fields

DictionaryKeysAdded
The dictionary keys to add.
public object[] DictionaryKeysAdded
DictionaryKeysRemoved
The dictionary keys to remove.
public object[] DictionaryKeysRemoved
ModificationType
The type of modification to be made.
public PrefabModificationType ModificationType
ModifiedValue
The modified value to set.
public object ModifiedValue
NewLength
The new list length to set.
public int NewLength
Path
The deep reflection path at which to make the modification.
public string Path
ReferencePaths
A list of all deep reflection paths in the target object where the value referenced by this modification was also located.
public List<string> ReferencePaths

Methods

Apply(Object)
Applies the modification to the given Object.
public void Apply(Object unityObject)
Parameters
UnityEngine.Object unityObject