Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LightingExplorerTableColumn(DataType, GUIContent, string, int, OnGUIDelegate, ComparePropertiesDelegate, CopyPropertiesDelegate, int[])

Constructor.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public LightingExplorerTableColumn(LightingExplorerTableColumn.DataType type, GUIContent headerContent, string propertyName = null, int width = 100, LightingExplorerTableColumn.OnGUIDelegate onGUIDelegate = null, LightingExplorerTableColumn.ComparePropertiesDelegate compareDelegate = null, LightingExplorerTableColumn.CopyPropertiesDelegate copyDelegate = null, int[] dependencyIndices = null)

Parameters

Depending on what DataType we use, built-in compare and draw methods will be used. If you want to fully overload this, use Custom.

headerContent

Title for the column header.

propertyName

Name of the property on the object you wish to use. If you use Name, choose ‘null’.

width

Width of the column. The minimum width is this value divided by 2. The default value is 100.

onGUIDelegate

If you want to draw a property differently than the default, provide this delegate. If you use Custom, you must override this.

If you want to sort properties differently than the default way, provide this delegate. If you use Custom, you must override this.

If you want to copy properties differently than the default way, provide this delegate.

dependencyIndices

If you depend on another Serialized property than the one in your column, use this field to specify which indices to include. The first column is index 0.