文档

Unity Engine


Unity Engine


CanCacheInspectorGUI(SerializedProperty)

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

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
警告
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.