# SetGlobalTR(AnimationStream, Vector3, Quaternion, bool)

> Sets the position and rotation of the transform in world space.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Animations](/engine/6000.5/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public void SetGlobalTR(AnimationStream stream, Vector3 position, Quaternion rotation, bool useMask)
```

### Parameters

**** (\[AnimationStream]\(/engine/6000.5/script-reference/unityengine/animations/animationstream)): The [AnimationStream](/engine/6000.5/script-reference/unityengine/animations/animationstream.md) that holds the animated values.**** (\[Vector3]\(/engine/6000.5/script-reference/unityengine/vector3)): The position of the transform in world space.**** (\[Quaternion]\(/engine/6000.5/script-reference/unityengine/quaternion)): The rotation of the transform in world space.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set to true to write the specified parameters if the matching stream parameters have not already been modified.
