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 Mathieujofis · Aug 30, 2013 at 08:25 PM · pluginxcoderendernative plugin

low level native render plugin Xcode issues

I recently downloaded the native rendering example (found here: http://docs.unity3d.com/Documentation/Manual/NativePluginInterface.html). The issue is that when I run the example with the precompiled bundle, it renders fine showing the rotating triangle and texture on the plane, but as soon as I try to compile it myself in xcode and copy the bundle from the debug Xcode folder to the projects assets/plugins folder, it doesn't render the triangle or the texture on the plane.

I'm currently working with Mac OS X 10.8.4, Unity 4.1 (pro trial), and Xcode 4.6.2 and I noticed that at the bottom of that page, it states that the example works for Xcode 3.2. When I opened the project, the libraries, search paths and include paths weren't set in Xcode, which makes me wonder if the discrepancy between Xcode 3.2 and 4.6 is causing the project file to omit some important information needed to compile a working bundle.

Also, it's worth noting that a proper pointer to the texture is not being received in the native renderer, because when I log texWidth and texHeight, it shows nonsense.

Is the native render plugin example supported anymore? Has anyone got it compiled and running correctly with later versions of Xcode and Unity?

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

Answer by Mathieujofis · Sep 02, 2013 at 03:29 PM

Ok, I figured it out. I tested the native rendering example on a Snow Leopard machine running Xcode 3.2 and it wouldn't work until I built a release version. I was also linking to the X11 OpenGL libraries, instead of the OSX framework that comes with Mountain Lion. Once I set the example to build in release and link the the OpenGL framework, it ran fine in 10.8.

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

17 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

Related Questions

Getting unity3D to include .h files automatically in xCode (iOS) 1 Answer

A node in a childnode? 1 Answer

Can you build iOS plugins using objective-c or only with pure c? 1 Answer

iOS Plugin - Possible to Register 2 subclasses of UnityAppController with IMPL_APP_CONTROLLER_SUBCLASS 0 Answers

Execute native ios code in unity 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