コード例 #1
0
            void DrawPlatformsPreviewElement(Rect rect, int index, bool isActive, bool isFocused)
            {
                SerializedProperty platform = platformsList.preview.GetArrayElement(index);

                GUIArea.Progress(ref rect, GUIArea.LayoutOffset / 2);

                EditorGUI.PropertyField(GUIArea.ProgressLine(ref rect), platform, new GUIContent("Platform " + (index + 1)));
            }
コード例 #2
0
        protected virtual void DrawDefaultElement(Rect rect, int index, bool isActive, bool isFocused)
        {
            GUIArea.Progress(ref rect, GUIArea.LayoutOffset);

            elementHeight = GetDefaultElementsSize();

            if (GetArrayElement(index).hasVisibleChildren)
            {
                DrawDefaultMultiElements(rect, index, isActive, isFocused);
            }
            else
            {
                DrawDefaultSingleElements(rect, index, isActive, isFocused, GetArrayElement(index));
            }
        }
コード例 #3
0
        protected virtual void DrawChild(ref Rect rect, SerializedProperty property)
        {
            var height = EditorGUI.GetPropertyHeight(property, true);

            EditorGUI.PropertyField(GUIArea.Progress(ref rect, height), property);
        }