# RegisterParameter

> Register a parameter by declaring its name and default value. Parameters are registered on the "default" platform, so are available for retrieval on every target platform.

## Definition

* **Type:** Method
* **Namespace:** [Unity.ProjectAuditor.Editor](/engine/6000.6/script-reference/unity/projectauditor/editor.md)
* **Assembly:** UnityEditor

## RegisterParameter(string, string, string, int)

Register a parameter by declaring its name and default value. Parameters are registered on the "default" platform, so are available for retrieval on every target platform.

```csharp
public void RegisterParameter(string paramName, string userFriendlyName, string tooltip, int defaultValue)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Parameter name.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A user friendly name to show in the Project Settings.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text to show on a tooltip in the Project Settings.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The default value this parameter will have, unless it has already been registered.

## RegisterParameter(string, string, string, int, int, int)

Register a parameter by declaring its name and default value. Parameters are registered on the "default" platform, so are available for retrieval on every target platform.

```csharp
public void RegisterParameter(string paramName, string userFriendlyName, string tooltip, int defaultValue, int minValue, int maxValue)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Parameter name.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): A user friendly name to show in the Project Settings.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Text to show on a tooltip in the Project Settings.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The default value this parameter will have, unless it has already been registered.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The minimum valid value this parameter may have.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The maximum valid value this parameter may have.
