Skip to content

Native Edit Box: creation/destruction of the native field is delayed on one frame #11

@Celtcoste

Description

@Celtcoste

Hello !

I'm using the plugin and I noticed that there is a kind of blink when I'm disabling and enabling the native edit boxes.
There is below an example, which I took from my app at 3 following frames.

Frame 1:

Frame 2:

Frame 3:

I'm not using the functionality "Switch Between Native" because there is also a blink when focusing/defocusing the field. I think the delay/blink comes from the native call to Destroy(), that is not handle at the same time as the Unity onDisable() function on the input field.

To fix this issue, I tried to :

  • remove all the delays from scripts (WaitForEndOfFrame/WaitForFixedUpdate) so the native calls can be made the quickest possible
  • Prioritize the plugin script execution order (-800)
  • Drop down the framerate from 60 fps to 30 fps
  • Move the input field out of the canvas before its destruction and show it when it had time to load on the side

I'm currently using Unity 2020.3.0f1.
Is there a way to correct this problem in a proper way and avoid this delayed frame ?

Thank you for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions