Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

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.

Did you find this page useful? Please give it a rating: