# SetTempAllocatorRequestedSize(uint)

> Sets the size of the temp allocator.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Profiling](/engine/6000.7/script-reference/unityengine/profiling.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool SetTempAllocatorRequestedSize(uint size)
```

### Parameters

**** (\[uint]\(https\://learn.microsoft.com/dotnet/api/system.uint32)): Size in bytes.

### Returns

| Type                                                          | Description                                                                                                |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if requested size was successfully set. Will return false if value is disallowed (too small). |

### Remarks

Can be used to change the size of the stack-based runtime allocator used for temporary allocations. Raise if TempAlloc.Overflow profiler markers affect runtime performance. Lower to save peak memory used.
