Пример #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 ToggleUxmlTraits()
 {
     m_Value = new UxmlBoolAttributeDescription {
         name = "value"
     };
     m_Label = new UxmlStringAttributeDescription {
         name = "label"
     };
 }
Пример #3
0
 protected TextInputFieldBaseUxmlTraits()
 {
     m_MaxLength = new UxmlIntAttributeDescription {
         name = "maxLength", defaultValue = kMaxLengthNone
     };
     m_Password = new UxmlBoolAttributeDescription {
         name = "password"
     };
     m_MaskCharacter = new UxmlStringAttributeDescription {
         name = "maskCharacter", defaultValue = "*"
     };
 }
Пример #4
0
 public TextFieldUxmlTraits()
 {
     m_Multiline = new UxmlBoolAttributeDescription {
         name = "multiline"
     };
 }