文档

Unity Engine


User Manual

Script Reference

Unity Engine


CanCacheInspectorGUI(SerializedProperty)

Get whether a SerializedProperty 's inspector GUI can be cached.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Deprecated. CanCacheInspectorGUI has been deprecated and is no longer used.
public static bool CanCacheInspectorGUI(SerializedProperty property)

Parameters

The SerializedProperty in question.

Returns

Type

Description

boolWhether 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.