Building to WebGL is working great.
In fact I recently created this: https://skuld.moe/graffiti/
And it’s really neat and fun.
But this has gotten me recently thinking about a few things, and I came across a major question (Or maybe an idea)
Is it possible to create a WebGL client in Unity?
As in I want to make a Windows/Linux app that isn’t a web browser, but also isn’t specific built to a single WebGL application.
But instead it can take in a link to an existing WebGL app, and let the new application render it.
Is this possible? What would be needed to be done to make it possible?
No, you can, but you’d need to download the link and check the contents and then reject it if its not webgl… but you can do that… I assumed you wanted to do it for YOUR webgl stuff not everybodys but, you could… you can do anything pretty much in programming if you you’re prepared to work it out
Can you please review more carefully how you’re responding?
It feels you are replying with an idea you’re pushing, “Use C# to do it”, and now replying as if I’m arguing with you and replying to things not even said at this point.
No, I offered a potential solution, you were unclear on your requirements. I adjusted my explanation to accommodate the new information, after you told me i missed the point of information you didnt originally provide. If anything, if you read this as an outside, you could argue you’re the one attacking me. So, it works both ways… If you work in unity c# is a fairly safe assumption, but you can use any language you like… Delphi would do a fine job too…
if you want to run webgl inside standalone application, it needs to have embedded browser,
then everything just works (if the embedded browser supports webgl2.0+scripting and all that).
at which point its probably easier to not use unity to make that client,
or at least those browser plugins are often expensive in asset store, especially if regular electron or other native browser based app could work with iframe or url…
The reason I would want this to be in Unity, if possible, is in hopes to load the application as if it were an asset bundle. Then I can work with objects in a more direct manner. I don’t want to go to much into detail of what I need this for. But I will say there is a need to directly manipulate the objects, and create my own within the WebGL application.
I understand the notion to make it not Unity, but my REQUIREMENT is to be able create a seamless connection between my Unity objects, rendering, etc. with the applications.
Anyways,
But okay, there may be a few plugins available. Unity itself doesn’t expose anything to do this. Got it.
Perhaps there may be a way to wrap it with an html renderer in some way.
well webgl kinda requires a web renderer to work, respecting your desire not to share, have you considered a form of websocks, or gaming connection between, after all you can issue commands from one to another using that effect.
That is a reasonable thing to consider. Or as I would put it, constructing an API between the apps and the client. I was hoping something already in place for this, but at least this is all reasonable ways forward on the idea.