- Home /
Question by
unity_09fatihhamza · Apr 08, 2021 at 05:32 PM ·
how-to
Is there any method for ModifiedComponent.Apply()?
screen-shot-2021-04-08-at-202931.png
(37.4 kB)
Comment
Answer by Bunny83 · Apr 09, 2021 at 11:07 PM
Well, the PrefabUtility should contain everything you need. Specifically look at ApplyObjectOverride, ApplyPrefabInstance and ApplyPropertyOverride. They have different usecases, so make sure you read the description carefully. When you design an editor tool, make sure you test it on a duplicate / backed up project.
Answer by undevable · Apr 08, 2021 at 07:40 PM
I don't think so but why would you need it? You could just do it by right-clicking and applying it...
I have more than one changed item and I want to write editor tool for apply all of them to innermost prefab object of nested prefabs.
Can't you just have a reference to the innermost prefab object?
Your answer
