# SetReferenceValue(PropertyName, Object)

> Assigns a value for an ExposedReference.

## Definition

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

```csharp
void SetReferenceValue(PropertyName id, Object value)
```

### Parameters

**** (\[PropertyName]\(/engine/6000.0/script-reference/unityengine/propertyname)): Identifier of the [ExposedReference](/engine/6000.0/script-reference/unityengine/exposedreference1.md).**** (\[Object]\(/engine/6000.0/script-reference/unityengine/object)): The value to assigned to the [ExposedReference](/engine/6000.0/script-reference/unityengine/exposedreference1.md).
