---
title: SetMotionVectorScale(XeSSNativeContext, Vector2)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/intel/graphicsdevice/setmotionvectorscale
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/intel/graphicsdevice/setmotionvectorscale.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:04:46.454Z
locale: en-us
---

# SetMotionVectorScale(XeSSNativeContext, Vector2)

> Sets motion vector scaling factor for the given context. Useful when the motion vector texture stores motion vector values in units other than pixels.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Intel](/engine/7000.0/script-reference/unityengine/intel.md)
* **Assembly:** [UnityEngine.IntelXeSSModule](/engine/7000.0/script-reference/modules/unityengine-intelxessmodule.md)

```csharp
public bool SetMotionVectorScale(XeSSNativeContext xessContext, Vector2 scale)
```

### Parameters

**** (\[XeSSNativeContext]\(/engine/7000.0/script-reference/unityengine/intel/xessnativecontext)): The XeSS context to set motion vector scale.**** (\[Vector2]\(/engine/7000.0/script-reference/unityengine/vector2)): The motion vector scale value to set.

### Returns

| Type                                                          | Description                          |
| ------------------------------------------------------------- | ------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | true if successful, false otherwise. |
