Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by KaushikRahul · Mar 03, 2016 at 07:00 AM · standalonelinuxapplicationcommunicationexternal

communicating with external linux application

I want to run my Unity application on Linux as a standalone. I am done with the project and its working flawlessly in Linux. The issue am facing is to make unity application communicate with an external application. What I want to do here is, I have an application on my Linux machine which i want to use for, to make a call to a function in Unity standalone application, So that when the function is called the Unity application comes to the front and executes with the values of those parameters. And once the Unity application is done with its operation, it minimizes it self and makes a call to that Linux application. I have no idea how to send are receive messages through external applications, to unity application to that unity application can work.

Please help, And also i need help with minimizing and maximizing of unity standalone application.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by See_Sharp · Mar 03, 2016 at 08:25 AM

You could set up a TCP socket to communicate with other programs. I'm also currently doing this with a python script that runs in the background.

As for minimizing or maximizing on linux, If the .net windows code doesn't work, you could download a bash script that does such function. Copy paste it into your resource folder and execute the bash script from your C#/script :)

Ps: sorry for not providing any links, I'm on my phone and when I switch tabs this page gets refreshed, writing this the 3th time lol

Goodluck ;)

EDIT:

Run bash script from C# example: /$ cat /tmp/bash.sh #!/bin/bash echo "bla $1" / using System; using System.Diagnostics;

 class Runshell
 {
   static void Main()
   {
     ProcessStartInfo psi = new ProcessStartInfo();
     psi.FileName = "/tmp/bash.sh";
     psi.UseShellExecute = false;
     psi.RedirectStandardOutput = true;
 
     psi.Arguments = "test";
     Process p = Process.Start(psi);
     string strOutput = p.StandardOutput.ReadToEnd();
     p.WaitForExit();
     Console.WriteLine(strOutput);
   }

As for the bash script to minimize or maximize, i just hit google:

http://askubuntu.com/questions/4876/can-i-minimize-a-window-from-the-command-line

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KaushikRahul · Mar 04, 2016 at 09:12 PM 0
Share

Hi, Thanks

I'll try it out and will get back to you.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

51 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Linux Standalone player slow startup after version 5.2 0 Answers

How can I show a prompt for the user when my standalone application crashes? 0 Answers

Launching Windows apps from Unity 0 Answers

Standalone player giving "is not responding" dialog after first scene load on Ubuntu 2 Answers

Send a message from unity standalone application to a java application on linux? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges