# TrySetValueGlobal<TContainer, TValue>(ref TContainer, in PropertyPath, TValue, out VisitReturnCode)

> Sets the value of a property at the given path to the given value, using the global converters.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

## TrySetValueGlobal\<T, U>(T, PropertyPath, T, VisitReturnCode)

```csharp
public static bool TrySetValueGlobal<TContainer, TValue>(ref TContainer container, in PropertyPath path, TValue value, out VisitReturnCode returnCode)
```

### Parameters

**** (T): The container whose property needs to be set.**** (\[PropertyPath]\(/engine/6000.6/script-reference/unity/properties/propertypath)): The path of the property to set.**** (T): The value to assign to the property.**** (\[VisitReturnCode]\(/engine/6000.6/script-reference/unity/properties/visitreturncode)): The return code of the conversion.

### Returns

| Type                                                          | Description                                                   |
| ------------------------------------------------------------- | ------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | `true` if the value was set correctly, and `false` otherwise. |

### Remarks

This method isn't thread-safe.
