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

GetAttribute() public method

public GetAttribute ( string attrName ) : string
attrName string
return string
        public string GetAttribute(string attrName)
        {
            return GetAttribute(attrName, null);
        }

Same methods

XML::GetAttribute ( string attrName, string defValue ) : string

Usage Example

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

            _promptText             = xml.GetAttribute("prompt");
            _textField.restrict     = xml.GetAttribute("restrict");
            _textField.maxLength    = xml.GetAttributeInt("maxLength", int.MaxValue);
            _textField.keyboardType = xml.GetAttributeInt("keyboardType");
        }
All Usage Examples Of FairyGUI.Utils.XML::GetAttribute