コード例 #1
0
    public TableCell CreateInputFieldTableCell(string value, Action <TableCell> onEndEditAction = null)
    {
        GameObject          gcell = GameObject.Instantiate(m_DefalutTableCell);
        TableInputFieldCell cell  = gcell.GetComponent <TableInputFieldCell>();

        cell.SetOnEndEditAction(onEndEditAction);
        cell.Value = value;
        return(cell);
    }
コード例 #2
0
    public TableCell CreateInputFieldTableCell(string value, bool CanEdit = false, Action <TableCell> onEndEditAction = null)
    {
        GameObject          gcell = GameObject.Instantiate(m_DefalutTableCell);
        TableInputFieldCell cell  = gcell.GetComponent <TableInputFieldCell>();

        cell.SetOnEndEditAction(onEndEditAction);
        cell.Value = value;
        cell.InputField.textComponent.fontSize = m_FontSize;
        cell.InputField.interactable           = false;
        return(cell);
    }