Esempio n. 1
0
        protected override bool HandleAttachment(ref EditorGUIElementAttachment attachment)
        {
            EditorGUIElementAttachment_Singular_Label_GUIContent_Inline label;

            if (attachment.Convert <EditorGUIElementAttachment_Singular_Label_GUIContent_Inline>(out label))
            {
                attachment = new EditorGUIElementAttachment_Singular_Label_GUIContent_Block(label.GetLabel());
            }

            return(base.HandleAttachment(ref attachment));
        }
Esempio n. 2
0
        protected override bool HandleAttachment(ref EditorGUIElementAttachment attachment)
        {
            EditorGUIElementAttachment_Singular_Label_GUIContent cast;

            if (attachment.Convert <EditorGUIElementAttachment_Singular_Label_GUIContent>(out cast))
            {
                label = cast;
                return(false);
            }

            return(true);
        }