Namespace: | Sirenix.OdinInspector |
Assembly: | Sirenix.OdinInspector.Attributes |
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Parameter | AttributeTargets.Delegate | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter | AttributeTargets.All, AllowMultiple = false)]
[Conditional("UNITY_EDITOR")]
public class TableColumnWidthAttribute : Attribute, _Attribute
[TableList]
public List<SomeType> TableList = new List<SomeType>();
[Serializable]
public class SomeType
{
[LabelWidth(30)]
[TableColumnWidth(130, false)]
[VerticalGroup("Combined")]
public string A;
[LabelWidth(30)]
[VerticalGroup("Combined")]
public string B;
[Multiline(2), Space(3)]
public string fields;
}
public TableColumnWidthAttribute(int width, bool resizable = true)
System.Int32 | width | The width of the column in pixels. |
System.Boolean | resizable | If |
public bool Resizable
public int Width