Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Create external dll and mesh render

Discussion in 'General Discussion' started by brunoescalona, Jun 21, 2016.

  1. brunoescalona

    brunoescalona

    Joined:
    Jun 21, 2016
    Posts:
    2
    Hi I would like to ask you if it will be posible to generate a dll from Unity to create a menu. In this menu I would like to introduce points with the (x,y,z) values and render a 3d object with planes, cubes and so... Pick every single element and change their colour.
    It would be posible to call the dll from a project done in Visual Studio?
    I would like to use the unity engine but just as support for my application.
    Thank you
     
  2. darkhog

    darkhog

    Joined:
    Dec 4, 2012
    Posts:
    2,218
    It is not possible with Unity, unfortunately. Or rather, technically you could do that, but it would break eula.

    You may try to do such thing with some open-source 3D engine like Ogre3d or Irrlicht.
     
  3. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,026
    If you're asking if you can use Unity to create your own game engine... no. Like @darkhog stated that breaks the EULA.

    If you're asking if you can use Unity more like an API rather than work through the editor, that's perfectly fine and is the way some people (like @zombiegorilla) approach the engine.
     
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    It's not possible as written. Mainly because unity outputs executables instead of dlls. But you can acheive the same effect.

    Create an executable application with Unity. Launch the application with you VS application. Then use the various .NET tools to communicate between VS and the Unity app.
     
    Ryiah likes this.
  5. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,026
    Communicating back and forth with .NET sockets would work very well.
     
    Kiwasi likes this.
  6. brunoescalona

    brunoescalona

    Joined:
    Jun 21, 2016
    Posts:
    2
    Thank you for your support!