LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

Physics2D.SyncTransforms

public static void SyncTransforms();

Description

Synchronizes.

When a Transform component changes, any Rigidbody2D or Collider2D on that Transform or its children may need to be repositioned, rotated or scaled depending on the change to the Transform. You can also manually synchronize transform changes using Physics2D.SyncTransforms.