FairyGUI.Utils.XML.GetAttributeInt C# (CSharp) Method

GetAttributeInt() public method

public GetAttributeInt ( string attrName ) : int
attrName string
return int
        public int GetAttributeInt(string attrName)
        {
            return GetAttributeInt(attrName, 0);
        }

Same methods

XML::GetAttributeInt ( string attrName, int defValue ) : int

Usage Example

Example #1
0
        public override void Setup_BeforeAdd(Utils.XML xml)
        {
            base.Setup_BeforeAdd(xml);

            string str = xml.GetAttribute("prompt");

            if (str != null)
            {
                inputTextField.promptText = str;
            }
            inputTextField.displayAsPassword = xml.GetAttributeBool("password", false);
            inputTextField.restrict          = xml.GetAttribute("restrict");
            inputTextField.maxLength         = xml.GetAttributeInt("maxLength", 0);
            inputTextField.keyboardType      = xml.GetAttributeInt("keyboardType");
        }
All Usage Examples Of FairyGUI.Utils.XML::GetAttributeInt