# GetReferenceValue(PropertyName, out bool)

> Retrieves a value for the given identifier.

## Definition

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

## GetReferenceValue(PropertyName, bool)

```csharp
Object GetReferenceValue(PropertyName id, out bool idValid)
```

### Parameters

**** (\[PropertyName]\(/engine/6000.0/script-reference/unityengine/propertyname)): Identifier of the [ExposedReference](/engine/6000.0/script-reference/unityengine/exposedreference1.md).**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Is the identifier valid?

### Returns

| Type                                                            | Description                    |
| --------------------------------------------------------------- | ------------------------------ |
| [Object](/engine/6000.0/script-reference/unityengine/object.md) | The value stored in the table. |
