Class FlexalonCell
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
Specifies which cell a gameObject should occupy in a table or grid layout.
[AddComponentMenu("Flexalon/Flexalon Cell")]
[HelpURL("https://www.flexalon.com/docs/tableLayout")]
public class FlexalonCell : FlexalonComponent
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourFlexalonCell
- Derived
- Inherited Members
Properties
Cell
The cell to occupy.
public Vector3Int Cell { get; set; }
Property Value
- Vector3Int
Column
The column of the cell.
public int Column { get; set; }
Property Value
- int
ColumnSpan
The number of columns occupied by the cell.
public int ColumnSpan { get; set; }
Property Value
- int
Layer
The layer of the cell.
public int Layer { get; set; }
Property Value
- int
LayerSpan
The number of layers occupied by the cell.
public int LayerSpan { get; set; }
Property Value
- int
OverlapCells
Allow specified placement to overlap occupied cells, and leave this child's cells available to following children. Automatic placement still searches for space for the full span.
public bool OverlapCells { get; set; }
Property Value
- bool
Row
The row of the cell.
public int Row { get; set; }
Property Value
- int
RowSpan
The number of rows occupied by the cell.
public int RowSpan { get; set; }
Property Value
- int
Span
The number of columns, rows, and layers occupied by the cell.
public Vector3Int Span { get; set; }
Property Value
- Vector3Int
SpecifyPlacement
Start placement at the specified cell. When OverlapCells is disabled, wrap spans that cross the column boundary and skip occupied cells.
public bool SpecifyPlacement { get; set; }
Property Value
- bool
Methods
CaptureCurrentCell()
Sets Cell to the cell this object currently occupies in its table or grid layout and enables SpecifyPlacement, so an automatic placement stays where it is when other objects move. Cells of objects inside a row are relative to the row.
public bool CaptureCurrentCell()
Returns
- bool
False if the object has no resolved cell in a parent cell layout.