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.

Transform.SetPositionAndRotation

Switch to Manual
public void SetPositionAndRotation(Vector3 position, Quaternion rotation);

Description

Sets the world space position and rotation of the Transform component.