-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question on CreateRenderAPI #6
Comments
I'm not affiliated with Unity. Unity calls
|
@samjacobson Thank you :) This explains it. I just tested it and indeed, |
https://docs.unity3d.com/Manual/NativePluginInterface.html |
Wow, how could I miss that? |
Sorry for bothering you guys, but I really would like to understand one thing.
Can somebody explain to me why
RegisterPlugin()
is called only forWEBGL
?NativeRenderingPlugin/UnityProject/Assets/UseRenderingPlugin.cs
Lines 56 to 57 in 2b8ca29
I don't quite understand from the code how
OnGraphicsDeviceEvent
(which creates an instance of the RenderAPI) gets called.In other words, when not using
UNITY_WEBGL
how doesCreateRenderAPI
gets called?NativeRenderingPlugin/PluginSource/source/RenderingPlugin.cpp
Line 144 in 2b8ca29
I know that I am missing something, since the code seems to work just fine.
Thank you very much.
The text was updated successfully, but these errors were encountered: