Пример #1
0
        //called from base OnGUI, handles child property drawing
        protected override void DrawChildProperties(Rect position, SerializedProperty property)
        {
            //draw label
            Rect newPosition = DrawTopLabel(position);

            //draw unique id
            newPosition = DrawUniqueID(newPosition);
            //Draw name
            newPosition = EditorTool.DrawTextArea(newPosition, name, "Text");
            //tag header
            newPosition = EditorTool.DrawLabel(newPosition, "Tag");
            //tag
            newPosition = DrawTag(newPosition);
            //remove indent
            newPosition = EditorTool.GetIndentedPosition(newPosition, false);
            //replies header
            newPosition = EditorTool.DrawLabel(newPosition, "Replies");
            //Draw useDefaultReply
            newPosition     = EditorTool.DrawBoolField(newPosition, useDefaultReply, "Use Default Replies");
            isDetailExpaned = useDefaultReply.boolValue;
            //Draw replies if not default
            if (isDetailExpaned == false)
            {
                newPosition = EditorTool.DrawReorderableList(newPosition, repliesList);
            }
        }