# oneWay

> Whether to use one-way collision behaviour or not.

## Definition

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

> **Warning:**
>
> **Removed.** PlatformEffector2D.oneWay has been obsolete. Use PlatformEffector2D.useOneWay instead
>
> **Upgrade to** [PlatformEffector2D.useOneWay](/engine/6000.6/script-reference/unityengine/platformeffector2d/useoneway.md)

```csharp
public bool oneWay { get; set; }
```

### Remarks

Various behaviour associated with 2D platforms are provided by this effector such as allowing colliders to pass-through the effector colliders in one-direction (one-way) as well as controller whether friction or bounce should be applied.
