コード例 #1
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"
     };
 }
コード例 #2
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"
     };
 }