Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimatorUtility.DeoptimizeTransformHierarchy

Switch to Manual
public static function DeoptimizeTransformHierarchy(go: GameObject): void;

Parameters

go GameObject to Deoptimize.

Description

This function will recreate all transform hierarchy under GameObject.

A call to this function at runtime will re-initialize the animator.

See Also: AnimatorUtility.OptimizeTransformHierarchy, Animator.hasTransformHierarchy.