예제 #1
0
            public ScrollViewUxmlTraits()
            {
                m_ShowHorizontal = new UxmlBoolAttributeDescription {
                    name = "showHorizontalScroller"
                };
                m_ShowVertical = new UxmlBoolAttributeDescription {
                    name = "showVerticalScroller"
                };

                m_HorizontalLowValue = new UxmlFloatAttributeDescription {
                    name = "horizontalLowValue"
                };
                m_HorizontalHighValue = new UxmlFloatAttributeDescription {
                    name = "horizontalHighValue"
                };
                m_HorizontalPageSize = new UxmlFloatAttributeDescription {
                    name = "horizontalPageSize", defaultValue = Slider.kDefaultPageSize
                };
                m_HorizontalValue = new UxmlFloatAttributeDescription {
                    name = "horizontalValue"
                };

                m_VerticalLowValue = new UxmlFloatAttributeDescription {
                    name = "verticalLowValue"
                };
                m_VerticalHighValue = new UxmlFloatAttributeDescription {
                    name = "verticalHighValue"
                };
                m_VerticalPageSize = new UxmlFloatAttributeDescription {
                    name = "verticalPageSize", defaultValue = Slider.kDefaultPageSize
                };
                m_VerticalValue = new UxmlFloatAttributeDescription {
                    name = "verticalValue"
                };
            }
예제 #2
0
 public ScrollerUxmlTraits()
 {
     m_LowValue = new UxmlFloatAttributeDescription {
         name = "lowValue"
     };
     m_HighValue = new UxmlFloatAttributeDescription {
         name = "highValue"
     };
     m_Direction = new UxmlEnumAttributeDescription <Slider.Direction> {
         name = "direction", defaultValue = Slider.Direction.Vertical
     };
     m_Value = new UxmlFloatAttributeDescription {
         name = "value"
     };
 }
예제 #3
0
 public SliderUxmlTraits()
 {
     m_LowValue = new UxmlFloatAttributeDescription {
         name = "lowValue"
     };
     m_HighValue = new UxmlFloatAttributeDescription {
         name = "highValue", defaultValue = kDefaultHighValue
     };
     m_PageSize = new UxmlFloatAttributeDescription {
         name = "pageSize", defaultValue = kDefaultPageSize
     };
     m_Direction = new UxmlEnumAttributeDescription <Slider.Direction> {
         name = "direction", defaultValue = Direction.Vertical
     };
     m_Value = new UxmlFloatAttributeDescription {
         name = "value"
     };
 }