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

GetNode() public method

public GetNode ( string selector ) : XML
selector string
return XML
        public XML GetNode(string selector)
        {
            if (_children == null)
                return null;
            else
                return _children.Find(selector);
        }

Usage Example

示例#1
0
        public override void Setup_AfterAdd(XML xml)
        {
            base.Setup_AfterAdd(xml);

            XML cxml = xml.GetNode("gearColor");
            if (cxml != null)
                gearColor.Setup(cxml);
        }
All Usage Examples Of FairyGUI.Utils.XML::GetNode