# SetPositionAndRotation(Vector3, Quaternion)

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void SetPositionAndRotation(Vector3 position, Quaternion rotation)
```

### Parameters

**** (\[Vector3]\(/engine/6000.6/script-reference/unityengine/vector3)): The world space position to apply to the transform.**** (\[Quaternion]\(/engine/6000.6/script-reference/unityengine/quaternion)): The world space rotation to apply to the transform.

### Remarks

When setting both the position and rotation of a transform, calling this method is more efficient than assigning to [Transform.position](/engine/6000.6/script-reference/unityengine/transform/position.md) and [Transform.rotation](/engine/6000.6/script-reference/unityengine/transform/rotation.md) individually.
