Example #1
0
        public static ITextHandle New()
        {
            TextNativeHandle h = new TextNativeHandle();

            h.textVertices = new NativeArray <TextVertex>();
            return(h);
        }
 public static ITextHandle GetEditorHandle()
 {
     if (CreateEditorHandle != null)
     {
         return(CreateEditorHandle());
     }
     return(TextNativeHandle.New());
 }
 private void OnAttachToPanel(AttachToPanelEvent e)
 {
     iTextHandle = e.destinationPanel.contextType == ContextType.Editor
         ? TextNativeHandle.New()
         : TextHandleFactory.GetRuntimeHandle();
 }