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 /
avatar image
1
Question by fiercewaffle · Jul 24, 2011 at 09:33 AM · iosiphonepluginnative

Native Alert on iOS (plugin)

Hello, I have been trying to create a plugin with XCode and build it into a DLL or whatever is better with XCode inorder to create a native alert. I need help with how to exactly create the plugins(Example : File > New Project > Whatever) as well as a little snippet of code that will allow me to call the function like this displayAlert("alertTitle", "alertText");

Thank you in advance, I really appreciate your help.

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 DeveshPandey · Apr 15, 2015 at 05:09 AM 0
Share

Hi Guys, You can use plugin to show native alert in your unity app/game.

http://u3d.as/content/devesh-pandey/native-alert/czB

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by kayy · Jul 25, 2011 at 09:11 AM

I did it sometime ago and started with the excellent blog entry An Experiment with iPhone Native UI and Unity 3 Pro by Gregg Martin. He provides a running demo for downloading so you can inspect the code. Furtheron I bookmarked a forum thread Unity plugin to handle loading native Cocoa UI's with ease.

When I started integrating m own iOS lib, the most annoying thing was parameter transfer and I ended up in supplying int (=> int*), string (=>const char*), ... because even to get a struct transported to the other end seems to be tricky.

Comment
Add comment · Show 6 · 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 fiercewaffle · Jul 25, 2011 at 09:18 AM 0
Share

Thats the thing.....Ive been trying for a few days now, my best results were...well nothing. Any way you can help me over TeamViewer or via e-mail. $$anonymous$$ine is fiercemodz@gmail.com I'd like to call it like this in unity displayAlert("Title", "$$anonymous$$essage"); But Im having trouble. All I've got for reference is the Prime31 gyroscope plugin.

avatar image kayy · Jul 25, 2011 at 09:44 AM 0
Share

To break it down, you should start with the demo project http://clevermartian.com/blog/wp-content/uploads/2010/08/iPhoneNativeUIExperiment.zip (zip file). Next, what exactly is the error? What is the debugger showing for Title variable?

avatar image alphakanal · Feb 01, 2013 at 01:01 PM 0
Share

hi! just read this and try to find the blog entry by Gregg $$anonymous$$artin you mentioned. But it seems this link is dead, is there a chance to get this entry somehow ?

avatar image kayy · Feb 01, 2013 at 01:19 PM 0
Share

Well it disappeared on the mentioned web site. There are some copies around or you can look it up in the famous internet archive wayback machine :-): http://web.archive.org/web/20120706195310/http://clevermartian.com/blog/?p=59

avatar image alphakanal · Feb 01, 2013 at 01:25 PM 0
Share

thank you very much! :-)

Show more comments

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Native GUI-Style on IOS 2 Answers

Have to "Replace" iOS project every build because of Linker Errors 0 Answers

How to get local currency u3dxt 1 Answer

Access photos, videos & music from iOS and Android library? 0 Answers

Unity sounds not playing after AVAudioSession is disabled 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