private static VisualElement CreateSlider(IUxmlAttributes bag, CreationContext ctx) { return(new Slider( bag.GetPropertyFloat("lowValue", 0), bag.GetPropertyFloat("highValue", 0), null, bag.GetPropertyEnum("direction", Slider.Direction.Horizontal) )); }
public float GetValueFromBag(IUxmlAttributes bag) { return(bag.GetPropertyFloat(name, defaultValue)); }