# SetTransformAccess

> Set the TransformAccess position without causing a PhysicsEvents.TransformChangeEvent to be generated. See PhysicsWorld.RegisterTransformChange.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## SetTransformAccess(TransformAccess, Vector3, bool)

Set the [TransformAccess](/engine/6000.5/script-reference/unityengine/jobs/transformaccess.md) position without causing a [PhysicsEvents.TransformChangeEvent](/engine/6000.5/script-reference/unity/u2d/physics/physicsevents/transformchangeevent.md) to be generated. See [PhysicsWorld.RegisterTransformChange](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/registertransformchange.md).

```csharp
public static void SetTransformAccess(ref TransformAccess transformAccess, ref Vector3 position, bool transformChangedEvent = false)
```

### Parameters

**** (\[TransformAccess]\(/engine/6000.5/script-reference/unityengine/jobs/transformaccess)): The [TransformAccess](/engine/6000.5/script-reference/unityengine/jobs/transformaccess.md)used to change the transform.**** (\[Vector3]\(/engine/6000.5/script-reference/unityengine/vector3)): The global position to set the transform to.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): By default, no transform changed event will be produced however this behaviour can be overridden with this argument.

## SetTransformAccess(TransformAccess, Vector3, Quaternion, bool)

Set the [TransformAccess](/engine/6000.5/script-reference/unityengine/jobs/transformaccess.md) position and rotation without causing a [PhysicsEvents.TransformChangeEvent](/engine/6000.5/script-reference/unity/u2d/physics/physicsevents/transformchangeevent.md) to be generated. See [PhysicsWorld.RegisterTransformChange](/engine/6000.5/script-reference/unity/u2d/physics/physicsworld/registertransformchange.md).

```csharp
public static void SetTransformAccess(ref TransformAccess transformAccess, ref Vector3 position, ref Quaternion rotation, bool transformChangedEvent = false)
```

### Parameters

**** (\[TransformAccess]\(/engine/6000.5/script-reference/unityengine/jobs/transformaccess)): The [TransformAccess](/engine/6000.5/script-reference/unityengine/jobs/transformaccess.md)used to change the transform.**** (\[Vector3]\(/engine/6000.5/script-reference/unityengine/vector3)): The global position to set the transform to.**** (\[Quaternion]\(/engine/6000.5/script-reference/unityengine/quaternion)): The global rotation to set the transform to.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): By default, no transform changed event will be produced however this behaviour can be overridden with this argument.
