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 Cthutu · Jul 22, 2010 at 03:41 PM · extensions

Extending unity with custom code

Hi,

There are going to be times when unity does not cover the needs of the product as so needs to be extended using C/C++. An example of this is using 3rd party middleware or APIs. I understand this is accomplished via DLLs on the Windows platform, but how will it be accomplished with regards to the consoles, short of purchasing a license to have full access of the source code?

I tried to search for any info on this and couldn't find any.

Any insight would be most helpful.

Thanks

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 equalsequals · Jul 22, 2010 at 03:53 PM 0
Share

I'm not definite on this so I'm not submitting an answer, but I think since Unity compiles everything in the end it just gets taken care of, regardless of the target platform. If you build your plugin and add it via the "Plugins" directory in your "Assets" directory it should be compiled into the final executable.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Mike 3 · Jul 22, 2010 at 04:02 PM

I don't think you're going to get a proper answer here - there is an NDA for details about the console development side of Unity, so you'll most likely need to talk to sales@unity3d.com to see if they can answer 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
avatar image
0

Answer by jashan · Jul 22, 2010 at 05:14 PM

Actually, I think cases where you really need to extend Unity with C/C++ are very rare as Unity already is very open with its Mono/.NET scripting approach (like, you can easily include SmartFox or Photon as 3rd party networking libraries - without even the need to use C/C++ and the possibility to have these run in the Web player).

However, if you really need it for console development, I'm pretty sure there are ways. As you mentioned: It works with DLLs on Windows. It also works on the Mac, and I think it also works on the iPhone. So, it would really surprise me if they didn't have a convenient way to handle this for console development, too.

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 Kilves · Dec 01, 2016 at 12:03 AM 0
Share

$$anonymous$$any times you might want to do performance-heavy stuff on c++. For example, I have a case where I need to build a mesh from voxels practically real-time. Currently, reading 10x10x64 voxel data and building a mesh from it takes approximately a second. I'm pretty sure I can push it into real-time if I use a dynamic library.

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

1 Person is following this question.

avatar image

Related Questions

Terrain Editor on a sphere. 2 Answers

tile scriptable object lost its content 0 Answers

Tool to make ONE flat sized mesh from a png/texture? 5 Answers

How do I add editor extensions to Unity? 1 Answer

Real time scene changes 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