Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
3
Question by David 3 · Nov 17, 2010 at 02:48 PM · controlmonointerop

Control Unity from C# app

Hi there,

I am wondering what would be the best way of launching and sending commands to a unity instance? (commands such as which view point to show, initially working on windows)

I have vaguely thought that inter process communication via Mono should work but wondered if anyone had done this or had any advice to share?

If not i'll have a shot in a weeks time or so and try and remember to post back

Thanks

David

Comment
Add comment · Show 2
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 skovacs1 · Nov 17, 2010 at 08:11 PM 0
Share

Did you mean the Unity editor or an executable built from Unity?

avatar image David 3 · Nov 18, 2010 at 03:14 PM 0
Share

i mean controlling an executable built from Unity

4 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by fireDude67 · Dec 29, 2010 at 05:51 PM

A unity C++ plugin with a C# wrapper?

Comment
Add comment · 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
0

Answer by yoyo · Jan 13, 2011 at 07:11 PM

Named pipes ought to work, though I've not tried it personally.

MSDN has docs for System.ServiceModel.NetNamedPipeBinding, and Mono includes System.ServiceModel. The System.SericeModel.dll is present in my Unity install (under Data\Mono\lib\mono\2.0), but I get a compile error from "using System.ServiceModel".

I got the compile error to go away by copying System.ServiceModel.dll and System.Security.dll into my Assets\Plugins folder, but I haven't tried to actually use it. (Is there a better way to enable additional Mono assemblies?)

Let us know what you come up with, I'm interested in this topic.

Comment
Add comment · 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
0

Answer by Keld lykke · Apr 18, 2011 at 10:30 PM

I would go for a listening socket.

Comment
Add comment · 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
0

Answer by Wolfram · May 03, 2011 at 02:43 PM

You could also use OSC http://en.wikipedia.org/wiki/Open_Sound_Control, for example. One advantage is, it is already available as Unity C# scripts, as part of uniTUIO http://xtuio.com/index.php/projectsmain/utuiomain.

While originally designed for transmitting sound parameters between electronic synthesizers and such, you can transfer just about anything between applications (and between networked computers) using this protocol (ints, floats, strings, ...).

uniTUIO, a multitouch interface for Unity, uses the TUIO protocol, which is implemented on top of OSC. But you can also use the OSC classes directly, without TUIO.

It might be overkill, and you could do your own thing using a socket (which is just what OSC does, after all), as Keld lykke suggested, but it is a ready-to-use framework for purposes just such as this.

Comment
Add comment · 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

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

No one has followed this question yet.

Related Questions

How to make camera position relative to a specific target. 1 Answer

A node in a childnode? 1 Answer

Is It possible to Upgrade the version of Mono Unity is Using 0 Answers

My MonoDevelope loads but doesnt load properly. Help please, there is a pic aswell. 1 Answer

Interop with mono_add_internal_call 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