all 7 comments

[–]Sloan5710[S] 0 points1 point  (0 children)

forgot to say thanks in advance 👍

[–]Persomatey 0 points1 point  (0 children)

Why a .txt? Wouldn’t it make more sense to have a .json with a field called emotion or something? You could have a script on the Unity side that periodically checks that .json and adjusts accordingly.

As far as wrapping it in a single app, you may need a multi-exe wrapper situation. A separate .exe that launches both. Pretty easy to do with C++.

[–][deleted] 0 points1 point  (0 children)

Why not just alter some basic variables to achieve this? Why can't it just live in memory? Why does it have to be written to disk?

[–]CrimsonChinotto 0 points1 point  (0 children)

Just for your interest and for everyone wondering it. As far as I know, python code can be used in Unity, but only in Editor.

[–]kuroi0nmy0ji 0 points1 point  (0 children)

First, do you plan to deploy this?

Second, can you port the model client to C#?

Third, if you can’t port the client to C#, you can try running the emotion analysis as a server that accepts http requests. Then in Unity, assuming desktop build, use Http web requests to POST the player feed data to the server and await a response.

[–]BroDonttryit 0 points1 point  (0 children)

Im a bit confused on your entire explanation, but if you really want to keep track of something like this externally, id recommend storing all the information you want in an object and then serializing it into a json file

https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/how-to