private bool ExternalPropertiesSection()
        {
            RectTransform circleRectTransformValue = m_CircleRectTransform.objectReferenceValue as RectTransform;

            if (circleRectTransformValue == null)
            {
                return(false);
            }
            if (circleRectTransformValue.childCount == 0)
            {
                return(false);
            }

            return(InspectorFields.GraphicColorField("Circle", circleRectTransformValue.GetChild(0).GetComponent <Graphic>()));
        }
Exemple #2
0
        private bool ExternalPropertiesSection()
        {
            bool result = false;

            RectTransform barRectTransform = m_BarRectTransform.objectReferenceValue as RectTransform;

            if (barRectTransform != null)
            {
                Utils.SetBoolValueIfTrue(ref result, InspectorFields.GraphicColorField("Bar", barRectTransform.GetComponent <Graphic>()));
            }

            Image backgroundImage = m_BackgroundImage.objectReferenceValue as Image;

            if (backgroundImage != null)
            {
                Utils.SetBoolValueIfTrue(ref result, InspectorFields.GraphicColorField("Background", backgroundImage));
            }

            return(result);
        }