private void PerformDraw(GUIContent content, CRect rect, bool useEditorIndent, bool isInHeader = false) { if (content == null) { content = this.content; } EditorGUI.BeginChangeCheck(); DrawInternal(content, rect, useEditorIndent, isInHeader); DrawingData.tooltipCheckRect = DrawingData.lastGuiObjectRect; DrawingData.tooltipCheckRect.width = EditorGUIUtility.labelWidth; if (this is TextureProperty == false) { tooltip.ConditionalDraw(DrawingData.tooltipCheckRect); } if (EditorGUI.EndChangeCheck()) { if (options.on_value_actions != null) { foreach (PropertyValueAction action in options.on_value_actions) { action.Execute(materialProperty); } } } Helper.testAltClick(DrawingData.lastGuiObjectRect, this); }
private void PerformDraw(GUIContent content, CRect rect, bool useEditorIndent) { if (content == null) { content = this.content; } EditorGUI.BeginChangeCheck(); DrawInternal(content, rect, useEditorIndent); if (EditorGUI.EndChangeCheck()) { if (options.on_value_actions != null) { foreach (PropertyValueAction action in options.on_value_actions) { action.Execute(materialProperty); } } } Helper.testAltClick(DrawingData.lastGuiObjectHeaderRect, this); }