# GetRangeLimits(Shader, int, int)

> Get Limits for a range property at index propertyIdx of Shader s.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

> **Warning:**
>
> **Deprecated.** Use Shader.GetPropertyRangeLimits and Shader.GetDefaultValue instead.

```csharp
public static float GetRangeLimits(Shader s, int propertyIdx, int defminmax)
```

### Parameters

**** (\[Shader]\(/engine/6000.5/script-reference/unityengine/shader)): The shader to check against.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The property index to use.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Which value to get: 0 = default, 1 = min, 2 = max.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |
