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
0
Question by Grocks · Nov 05, 2013 at 09:12 AM · javaembedexternal-applicationbroadcastmessage

Embed and communicate with Unity inside another app

Hi Everyone,

I've been developing an application which makes use of the GoogleMaps system (i'm aware of ToS, api etc)

Looking into embedding a dynamic map into a unity scene I've discovered this is very difficult to pull off.

So I got to wondering if it’s possible to embed a Unity scene into another application?

If unity could talk with an external app that also contains a google maps window, could the app not interpret commands between unity and googlemaps?

Attached is a lo-fi of the concept. I've been searching the script reference for talking to external apps, but all of it seems to only work in the web player.

alt text

Is this sort of setup theoretically possible? Basically what I'm trying to accomplish is BroadcastMessage but to an external app.

unity within application.jpg (359.9 kB)
Comment
Add comment · Show 1
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 mattssonon · Nov 05, 2013 at 10:21 AM 0
Share

Take a look at http://docs.unity3d.com/Documentation/$$anonymous$$anual/PluginsForAndroid.html for info about sending data between Unity and Java code.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by TranquilMarmot · Nov 05, 2013 at 01:49 PM

You could always have your main application start a server and listen on some port and then have Unity connect to the port via localhost. Unity could then send predefined commands using WWWForm to the main application which would communicate with Google maps.

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
1

Answer by dif-sam · May 08, 2015 at 01:20 PM

If your application's target platform is windows standalone, than you can try do embed unity window by using "-parentHWND" command line arguments for the Unity Player's process. Here is an example how to do this. And also, you can use any IPC (named pipes for exemple) to communicate with it.

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

18 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

Related Questions

Embedding Unity3D into a Java application 0 Answers

Google Maps in Unity!!! 1 Answer

Problems customizing the loading screen 1 Answer

Embed swf within Unity Webplayer 0 Answers

To broadcast or not to broadcast... 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