tunerok/unity_browser

"Space spacing" issue

HgonKim opened this issue · 10 comments

First Thank you for your "unity browser engine".

I build a Window program with this package in Unity.
When the program's path has a ' '(Space character), it doesn't start a plugin process...
But if this program's path doesn't have a ' '(Space character), it start a plugin process and do very well!!

How can I fix it for program which has a ' '(Space character)??

Thanks

Hi Kim,

If your problem solved? I have been trying to build this but keep getting error saying that mssing SharedMemeory namespace. Have you encountered the same issue?

@HgonKim have you got any logs?

@NanjiaW do you used test project or really compiled plugin?

@tunerok Thanks for reply! Unity is new to me but here's what I've tried:

  1. I download the unity package from vitaly_chashin, it runs fine in unity but when I tried to build it for UWP, it failed and showing that missing SharedMemory namespace.
  2. After fail to fix the bug by myself, I look up only see if someone had fixed that issue, and I found ur GitHub repository and the one done by Dmitry.
  3. In your repository the web_browser has already been built into Solution, so I am wondering if you could share the unity package file?
  4. Since there's no unity package file, I import the project using UnityClient folder, but got lot's of bugs.
    Thank you very much for taking your time reading this. Really appreciate if you can provide some suggestion.

Oh..!
I'd solved this problem!!!
But I have one more question..
ㄴ>sometimes the plugin has no response. But after restarting the program, then plugin does well..!
Can I fix i??

@HgonKim hi
Can you share solution with us, please?)

@HgonKim hi
Can you share solution with us, please?)

Issues come from Input.GetKey return a null value when sending char. And enum defines of Unity different. You can see more fore here. So to detect it, let handle for special keypress as (dot, backspace..) by sample code:

 foreach (KeyCode k in Enum.GetValues(typeof(KeyCode)))
 {
    if (Input.GetKey(code))
    {            if (code == KeyCode.Backspace) // || KeyCode.KeyNeedHandle
                {
                    mainEngine.SendCharEvent((int)code, KeyEvents.Down);
                }
   }
}

Hi. sorry to be late.
you mean the Unity can't return a value for "backspace"??

Hi. sorry to be late.

you mean the Unity can't return a value for "backspace"??

You can try wirte log for see value return.