Open rocksdanister opened 1 year ago
Is it possible this could be added as a feature suggestion for the future? I'd love to make a few Unity-based wallpapers using the API. I understand if not though, since this (awesome!) project has been around for a decent while and I seem to have been the first person to ask for it.
Sure, no problem.
Here is the plan, suggestions welcome:
On the wallpaper developer side the pipe name will be sent as startup argument --input-ipc-server=[name]
to the program.
Using it will have to create Named Pipe Server:
https://learn.microsoft.com/en-us/dotnet/api/system.io.pipes.namedpipeserverstream?view=net-7.0
Can create helper libraries in the future if required.
Just looking at the documentation you shared, I could for sure figure out the code Unity-side. My only question is, what will the data being sent look like? I'm assuming a json-like string result similar to the Web Wallpaper API?
Yes it will be serialized json, it can be converted to c# object: https://www.newtonsoft.com/json/help/html/deserializeobject.htm
I do plan to make LivelyProperties also json in the future https://github.com/rocksdanister/lively/issues/229
Discussed in https://github.com/rocksdanister/lively/discussions/1766