0

Replacer doesn't handle scaled parents when using "Preserve Scale on Replace"

Tyrus Peace 3 weeks ago 0

I appreciate that the option to preserve scale when using Replacer was added (How to maintain scale when utilizing replacer / Peek / Ludiq), but it doesn't handle scaled parents. In testing, simply moving the transform parenting in Replacer.cs to before the replacement transform's localScale is set fixes this problem.

Otherwise, replacing things that are children of scaled parents will result in all sorts of weird giant/small replacements! I doubt that's what anyone wants when checking that "Preserve Scale on Replace" checkbox.

Thanks for Peek! It's great.

Unity Version:
2019.4.23f1
Peek Version:
1.4.0