コード例 #1
0
 public static ITextHandle GetEditorHandle()
 {
     if (CreateEditorHandle != null)
     {
         return(CreateEditorHandle());
     }
     return(TextNativeHandle.New());
 }
コード例 #2
0
 private void OnAttachToPanel(AttachToPanelEvent e)
 {
     iTextHandle = e.destinationPanel.contextType == ContextType.Editor
         ? TextNativeHandle.New()
         : TextHandleFactory.GetRuntimeHandle();
 }