Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CanCacheInspectorGUI()

Override this method to determine whether the inspector GUI for your decorator can be cached.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
Warning
Deprecated. CanCacheInspectorGUI has been deprecated and is no longer used.
public virtual bool CanCacheInspectorGUI()

Returns

Type

Description

boolWhether the inspector GUI for your decorator can be cached.

Remarks

The default is true. If your UI is only using EditorGUI controls, it is cacheable. If you're using Handles, GL, or some other method to draw directly into your rect, then you should override this method and return false when your property is visible.