Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

AnimatorUtility.DeoptimizeTransformHierarchy

public static void DeoptimizeTransformHierarchy(GameObject go);

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.