예제 #1
0
//============================================================================//
        #region GUI

        // SHOW PROPERTIES //
        //
        override public void ShowProperties(ref bool shouldRepaint)
        {
            base.ShowProperties(ref shouldRepaint);

            BaseProperty previousSelection = selectedProperty;

            PropertyGroup("Object transform");
            sampledObject.ShowProperty(ref selectedProperty, false);
            insideValue.ShowProperty(ref selectedProperty, false);
            outsideValue.ShowProperty(ref selectedProperty, false);

            if (selectedProperty != previousSelection)
            {
                shouldRepaint = true;
            }
        }
//============================================================================//
        #region GUI

        // SHOW PROPERTIES //
        //
        override public void ShowProperties(ref bool shouldRepaint)
        {
            base.ShowProperties(ref shouldRepaint);

            BaseProperty previousSelection = selectedProperty;

            PropertyGroup("Object transform");
            sampledObject.ShowProperty(ref selectedProperty, false);
            if (sampledTransformElement.displayData == null)
            {
                sampledTransformElement.displayData = () => transformElementsDisplayData;                                                          // We have to do this here because delegates are not serialized.
            }
            sampledTransformElement.ShowProperty(ref selectedProperty, false);

            if (selectedProperty != previousSelection)
            {
                shouldRepaint = true;
            }
        }