Page 1 of 1

CefGlue with Unity

PostPosted: Wed Sep 05, 2018 5:32 am
by link1375
Hey,

I am trying to use cefgue in unity but I am stuck. I build the project added the files from the cef binaries and included all in the unity porject. I've found two old projects (https://github.com/aleab/cef-unity-sample, https://github.com/SethGibson/CEF_01) which render the webite to an object, but there is no interaction and the scene crashes after the second run (restart unity). So they use the offscreen version. But since I need to click on buttons on the website and scroll down in a 3D scene, I wonder if this is the right approach (i.e. can I simulate these interactions with the offscreen version? WindowsForms and wpft are not supported in Unity).

I hope someone can help me!

Re: CefGlue with Unity

PostPosted: Fri Sep 07, 2018 2:09 am
by Czarek
In CEF there is CefBrowser::SendMouseClickEvent and similar functions, so that you can click/move/scroll programmatically in off-screen rendering mode.