You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So right now there is two thing I need for my project. I will attempt these two things.
1) Loading local webpages from multiple assemblies.
So I'll try and dynamically load assemblies containing webpages.
Maybe defining a project path where the additional assemblies must be stored for it to be loaded at runtime. Preferably not embbeded into the unity project directly so that it can be modded. This would add a "modding" capability for user-created content to be loadable.
2) Communication between pages and unity.
I'm thinking of a websocket host in C# and have the webpage connect to it.
This way it would be event based both way and allow for live communication.
When the page load it attempt to connect to a local websocket address:port and if the connection is successful then both unity and the webpage will have access to exchange commands together.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So right now there is two thing I need for my project. I will attempt these two things.
1) Loading local webpages from multiple assemblies.
So I'll try and dynamically load assemblies containing webpages.
Maybe defining a project path where the additional assemblies must be stored for it to be loaded at runtime. Preferably not embbeded into the unity project directly so that it can be modded. This would add a "modding" capability for user-created content to be loadable.
2) Communication between pages and unity.
I'm thinking of a websocket host in C# and have the webpage connect to it.
This way it would be event based both way and allow for live communication.
When the page load it attempt to connect to a local websocket
address:port
and if the connection is successful then both unity and the webpage will have access to exchange commands together.Beta Was this translation helpful? Give feedback.
All reactions