UnityEngine.GUILayoutEntry.ToString C# (CSharp) Method

ToString() public method

public ToString ( ) : string
return string
        public override string ToString()
        {
            string str = "";
            for (int i = 0; i < indent; i++)
            {
                str = str + " ";
            }
            object[] objArray1 = new object[12];
            objArray1[0] = str;
            object[] args = new object[] { (this.style == null) ? "NULL" : this.style.name, base.GetType(), this.rect.x, this.rect.xMax, this.rect.y, this.rect.yMax };
            objArray1[1] = UnityString.Format("{1}-{0} (x:{2}-{3}, y:{4}-{5})", args);
            objArray1[2] = "   -   W: ";
            objArray1[3] = this.minWidth;
            objArray1[4] = "-";
            objArray1[5] = this.maxWidth;
            objArray1[6] = (this.stretchWidth == 0) ? "" : "+";
            objArray1[7] = ", H: ";
            objArray1[8] = this.minHeight;
            objArray1[9] = "-";
            objArray1[10] = this.maxHeight;
            objArray1[11] = (this.stretchHeight == 0) ? "" : "+";
            return string.Concat(objArray1);
        }

Usage Example

コード例 #1
0
        public override string ToString()
        {
            string text  = "";
            string text2 = "";

            for (int i = 0; i < GUILayoutEntry.indent; i++)
            {
                text2 += " ";
            }
            text = string.Concat(new string[]
            {
                text,
                base.ToString(),
                " Margins: ",
                this.m_ChildMinHeight.ToString(),
                " {\n"
            });
            GUILayoutEntry.indent += 4;
            foreach (GUILayoutEntry current in this.entries)
            {
                string         arg_9E_0 = text;
                GUILayoutEntry expr_8D  = current;
                text = arg_9E_0 + ((expr_8D != null) ? expr_8D.ToString() : null) + "\n";
            }
            text = text + text2 + "}";
            GUILayoutEntry.indent -= 4;
            return(text);
        }
All Usage Examples Of UnityEngine.GUILayoutEntry::ToString