コード例 #1
0
 /// <summary>
 /// Raises the enable event.
 /// </summary>
 protected override void OnEnable()
 {
     base.OnEnable();
     m_LinkKeywordCollections.drawElementCallback = (position, index, isActive, isFocused) =>
                                                    HyperTextProcessorDrawer.OnDrawLinkKeywordCollectionsEntry(
         position, index, m_TextProcessor, () => m_AssignedCollections
         );
     m_QuadKeywordCollections.drawElementCallback = (position, index, isActive, isFocused) =>
                                                    HyperTextProcessorDrawer.OnDrawQuadKeywordCollectionsEntry(
         position, index, m_TextProcessor, () => m_AssignedCollections
         );
     m_TagKeywordCollections.drawElementCallback = (position, index, isActive, isFocused) =>
                                                   HyperTextProcessorDrawer.OnDrawTagKeywordCollectionsEntry(
         position, index, m_TextProcessor, () => m_AssignedCollections
         );
     SerializedPropertyX.GetRemainingVisibleProperties <HyperText>(
         this.target as HyperText, m_SubclassProperties
         );
     UpdateGUIContents();
 }