# GetCategoryByName(char*, int)

> Gets the Profiler category identifier.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Profiling.LowLevel.Unsafe](/engine/6000.0/script-reference/unity/profiling/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static ushort GetCategoryByName(char* name, int nameLen)
```

### Parameters

**** (\[char\*]\(https\://learn.microsoft.com/dotnet/api/system.char)): Category name.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Category name length.

### Returns

| Type                                                           | Description                           |
| -------------------------------------------------------------- | ------------------------------------- |
| [ushort](https://learn.microsoft.com/dotnet/api/system.uint16) | Returns Profiler category identifier. |
