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 G.Tas · Nov 22, 2012 at 11:16 PM · iossceneobjective-cbridge

Bridging iOS to Unity and load specific scene through Objective-C code.

Hello,

I am a iOS developer among others and I have a task to evaluate if it works. If yes we will start working with Unity 3D too for our project, but before this we need to make a prove of concept. Concept is, we have our iOS iPad application and a Unity 3D project which has lets say 50 scenes, those scenes should be able to load from our native Objective-C app. Ofcourse the best for us would be to load a scene into a UIView and this UIView add as a subview into a parent so we can have perfect user interface and interaction! as far as I read so far this is impossible, if anyone can advice or have experience on this, welcome.

Anyway, I found some blogposts describing how to embed the Unity iOS exported project into XCode and put it "hide"/"unhide" between you UIViewController so I can have my app flow and pause/unpause Unity project when I want. My problem is that I need a solution because based on some parameters the specific Unity scene should be loaded, come to front and start. Of course this requires the power of somehow communicate with the Unity and send a message to it, can this be achieved through a plugin and if YES, can I have some help on where to start? e.g. "Objective-C to Unity bridging how to..." and "Here is API/Explain on where to focus to load specific scene of Unity project through your script".

I hope this makes perfect clear on what I'm looking for and thank you in advance.

Kind regards.

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
Best Answer

Answer by Democre · Nov 23, 2012 at 02:06 AM

I think you would have to build the scene loading functions inside Unity and then use UnitySendMessage from the XCode project. Similar to how it works with the web player. See this page in the manual under "Calling C# / JavaScript back from native code"

Comment
Add comment · Show 2 · 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 G.Tas · Nov 23, 2012 at 07:24 AM 0
Share

So you can basically do it. Go to a scene in runtime in anytime that you need!

avatar image Democre · Nov 23, 2012 at 03:36 PM 0
Share

Yes, if this answers your question, can you accept it please?

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

10 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

Related Questions

Hope this One is Easy 1 Answer

UnitySendMessage and NSString allocation 1 Answer

I need to know how to switch to another scene while playing the game. Please Help i'm stuck. 1 Answer

How to load a scene on collision 1 Answer

Returning a byte array from ObjC to C# script on ios 2 Answers


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