# SetTemplateCustomValue(string, string)

> Sets a value of a custom template variable.

## Definition

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

```csharp
public static void SetTemplateCustomValue(string name, string value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of the variable.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Value of the custom template variable.

### Remarks

During the build process, custom variables in user templates are set to the values supplied by the Editor. User templates are available on the WebGL platform.

Additional Resources: [PlayerSettings.GetTemplateCustomValue](/engine/6000.6/script-reference/unityeditor/playersettings/gettemplatecustomvalue.md).
