示例#1
0
        private void LookAtAnchor(XmlElement xml, ref Vector4 result)
        {
            if (!xml.Attributes.ContainsKey("Anchor"))
            {
                return;
            }

            Vector4Converter.Convert(xml.Attributes["Anchor"], ref result);
        }
示例#2
0
        public static bool HasVector4(this XmlElement xml, string attribute, out Vector4 value)
        {
            value = Vector4.zero;
            if (!xml.HasAttribute(attribute))
            {
                return(false);
            }

            return(Vector4Converter.Convert(xml.Attributes[attribute], ref value));
        }