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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Open In [IOS Unity]

Discussion in 'Scripting' started by DoPie, Aug 3, 2015.

  1. DoPie

    DoPie

    Joined:
    Jun 20, 2013
    Posts:
    64
    Hi there,

    I would like to ask a question if this possible to do this in Unity. see the image below.

    - My plan here is an app to load any kind of 3d model where user downloaded in the web` then web can find what app can be open this 3d models or Object.

    IMG_0125.jpg
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    You can register a or multiple File Formats / protocols for your app in XCode , so ios can understand that the app can work with the file.

    Loading the actual model is the hard part.
    The import functions for models that the unity editor has, are not available on any exported unity application.
    You would have to build a importer for all the file formats that you like to import yourself.
    Not to discourage you but that's a very heavy / complex task.
     
  3. DoPie

    DoPie

    Joined:
    Jun 20, 2013
    Posts:
    64

    Thanks malzbier,

    i agree to you its so heavy and very complex task. i was thinking right now on how to debug it to locate that data was open. i think i need a lot things to research.
     
  4. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Some file formats are easier to import then other, OBJ for example is kind of easy. For that there is a free asset in the asset store.
    https://www.assetstore.unity3d.com/en/#!/content/15862

    Another way i could think of would be a automated process of Uploading the model form the app to a serer with a unity editor installation that could batch import the model , create a assetbundle and send a download link for the assetbundle with the model in it back to the application.
    Then the application can download the assetbundle and and use the model.

    You would have to have all the programs installed for the different file formats.
    Unity will query other programs on formats that unity can not read natively.
    On a cinema 4D File (.c4d) unity would request the conversion form the local Cinema 4D installation.
    The same gos for native maya file and 3DS max files.

    http://docs.unity3d.com/Manual/3D-formats.html