# CanCacheInspectorGUI(SerializedProperty)

> Get whether a SerializedProperty 's inspector GUI can be cached.

## Definition

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

> **Warning:**
>
> **Deprecated.** CanCacheInspectorGUI has been deprecated and is no longer used.

```csharp
public static bool CanCacheInspectorGUI(SerializedProperty property)
```

### Parameters

**** (\[SerializedProperty]\(/engine/6000.5/script-reference/unityeditor/serializedproperty)): The [SerializedProperty](/engine/6000.5/script-reference/unityeditor/serializedproperty.md) in question.

### Returns

| Type                                                          | Description                                         |
| ------------------------------------------------------------- | --------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Whether the property's inspector GUI can be cached. |

### Remarks

For builtin EditorGUI controls, this is always true. If the property has a custom PropertyDrawer, the function will return the cacheability value returned by that drawer.
