/// <summary> /// Unstages the value. /// </summary> /// <param name="item">The stage item to unstage.</param> /// <param name="targetType">Type of the value.</param> /// <returns> /// The unstaged value. /// </returns> public object UnstageValue(StageItem item, Type targetType) { var el = (StageElement)item; return(new Bounds( new Vector3( SerializationMaster.FromString <float>(el.Attribute("center.x").value), SerializationMaster.FromString <float>(el.Attribute("center.y").value), SerializationMaster.FromString <float>(el.Attribute("center.z").value)), new Vector3( SerializationMaster.FromString <float>(el.Attribute("size.x").value), SerializationMaster.FromString <float>(el.Attribute("size.y").value), SerializationMaster.FromString <float>(el.Attribute("size.z").value)))); }