# SetPositionAndRotation(Vector3, Quaternion)

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

## Definition

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

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

### Parameters

**** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)): **** (\[Quaternion]\(/engine/6000.0/script-reference/unityengine/quaternion)):&#x20;

### Remarks

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