void OnEnable()
        {
            OnBaseEnable();

            m_MaterialSlider = (MaterialSlider)target;

            m_Interactable = serializedObject.FindProperty("m_Interactable");

            m_HasPopup                = serializedObject.FindProperty("m_HasPopup");
            m_HasDots                 = serializedObject.FindProperty("m_HasDots");
            m_AnimationDuration       = serializedObject.FindProperty("m_AnimationDuration");
            m_HasManualPreferredWidth = serializedObject.FindProperty("m_HasManualPreferredWidth");
            m_ManualPreferredWidth    = serializedObject.FindProperty("m_ManualPreferredWidth");
            m_EnabledColor            = serializedObject.FindProperty("m_EnabledColor");
            m_DisabledColor           = serializedObject.FindProperty("m_DisabledColor");
            m_BackgroundColor         = serializedObject.FindProperty("m_BackgroundColor");
            m_LowLeftDisabledOpacity  = serializedObject.FindProperty("m_LowLeftDisabledOpacity");
            m_LowRightDisabledOpacity = serializedObject.FindProperty("m_LowRightDisabledOpacity");
            m_HandleGraphic           = serializedObject.FindProperty("m_HandleGraphic");
            m_FillTransform           = serializedObject.FindProperty("m_FillTransform");
            m_SliderHandleTransform   = serializedObject.FindProperty("m_SliderHandleTransform");
            m_PopupTransform          = serializedObject.FindProperty("m_PopupTransform");
            m_PopupText               = serializedObject.FindProperty("m_PopupText");
            m_ValueText               = serializedObject.FindProperty("m_ValueText");
            m_ValueTextSuffix         = serializedObject.FindProperty("m_ValueTextSuffix");
            m_InputField              = serializedObject.FindProperty("m_InputField");
            m_BackgroundGraphic       = serializedObject.FindProperty("m_BackgroundGraphic");
            m_LeftContentTransform    = serializedObject.FindProperty("m_LeftContentTransform");
            m_RightContentTransform   = serializedObject.FindProperty("m_RightContentTransform");
            m_SliderContentTransform  = serializedObject.FindProperty("m_SliderContentTransform");
            m_DotTemplateIcon         = serializedObject.FindProperty("m_DotTemplateIcon");
        }
Пример #2
0
        void OnEnable()
        {
            OnBaseEnable();

            m_MaterialSlider = (MaterialSlider)target;

            m_Interactable = serializedObject.FindProperty("m_Interactable");

            m_HasPopup = serializedObject.FindProperty("m_HasPopup");
            m_HasDots = serializedObject.FindProperty("m_HasDots");
            m_AnimationDuration = serializedObject.FindProperty("m_AnimationDuration");
            m_HasManualPreferredWidth = serializedObject.FindProperty("m_HasManualPreferredWidth");
            m_ManualPreferredWidth = serializedObject.FindProperty("m_ManualPreferredWidth");
            m_EnabledColor = serializedObject.FindProperty("m_EnabledColor");
            m_DisabledColor = serializedObject.FindProperty("m_DisabledColor");
            m_BackgroundColor = serializedObject.FindProperty("m_BackgroundColor");
            m_LowLeftDisabledOpacity = serializedObject.FindProperty("m_LowLeftDisabledOpacity");
            m_LowRightDisabledOpacity = serializedObject.FindProperty("m_LowRightDisabledOpacity");
            m_HandleGraphic = serializedObject.FindProperty("m_HandleGraphic");
            m_FillTransform = serializedObject.FindProperty("m_FillTransform");
            m_SliderHandleTransform = serializedObject.FindProperty("m_SliderHandleTransform");
            m_PopupTransform = serializedObject.FindProperty("m_PopupTransform");
            m_PopupText = serializedObject.FindProperty("m_PopupText");
            m_ValueText = serializedObject.FindProperty("m_ValueText");
            m_InputField = serializedObject.FindProperty("m_InputField");
            m_BackgroundGraphic = serializedObject.FindProperty("m_BackgroundGraphic");
            m_LeftContentTransform = serializedObject.FindProperty("m_LeftContentTransform");
            m_RightContentTransform = serializedObject.FindProperty("m_RightContentTransform");
            m_SliderContentTransform = serializedObject.FindProperty("m_SliderContentTransform");
            m_DotTemplateIcon = serializedObject.FindProperty("m_DotTemplateIcon");
        }