private void LookAtAnchor(XmlElement xml, ref Vector4 result) { if (!xml.Attributes.ContainsKey("Anchor")) { return; } Vector4Converter.Convert(xml.Attributes["Anchor"], ref result); }
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)); }