Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 rchapman · Jul 27, 2015 at 05:19 PM · pluginnative plugin

GL.IssuePluginEvent with multiple plugins

I'm really not clear on how IssuePluginEvent is supposed to connect to native plugins, or really get used at all. The documentation is very limited, so there's a lot of guesswork involved (it sees like most questions regarding this call in this forum go unanswered).

The main question I have is how this call is supposed to work if you have multiple plugins that need to do native rendering. In the example code for iOS, you register the UnityRenderEvent(int marker) callback when the app starts. But this call isn't specific to the native plugin I'm designing. In our case this may not be an issue since we only have one plugin that needs to do native rendering, but how is this supposed to work if multiple plugins from different sources need this ability? I don't see any obvious way of directing the "plugin event" to the right place. The eventId is very mysterious as I don't see any way to link specific calls to specific IDs.

Maybe I'm missing the whole point of this call, but it would certainly be nice if there was more documentation or examples. The sample is pretty useless.

EDIT: Just for context, I have a native plugin that made OpenGL calls that worked perfectly well in Unity 4. It no longer works in Unity 5 and I have no idea why, so I'm trying to get to the bottom of it.

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 paraself · Sep 30, 2015 at 05:37 PM

take a look at the latest updated api for GL.IssuePluginEvent, you can pass a callback now http://docs.unity3d.com/ScriptReference/GL.IssuePluginEvent.html

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 rchapman · Sep 30, 2015 at 10:35 PM 0
Share

Ah, great. Thanks! Although I solved this problem in an unrelated way, it's good to know there's a way to do it.

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

22 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

Related Questions

Why is GL.IssuePluginEvent not listed on documentation page for "GL" class? 0 Answers

Native Plugin: What has to happen in the RenderEvent? 1 Answer

Do Native Mobile Plugins Require Pro? 1 Answer

android time cheat plugin problem with broadcastreceiver 1 Answer

DllNotFound when the plugin c++ dll links another c++ dll 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