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

Add/Delete .fbx/.obj file after building .exe.

Discussion in 'Scripting' started by Kishan-Sisangia, Sep 16, 2014.

  1. Kishan-Sisangia

    Kishan-Sisangia

    Joined:
    Mar 21, 2013
    Posts:
    11
    I am working on an 3d based application in which after building .exe User can add or delete game objects(.fbx/.obj) as well as can change the price of that game objects.

    For that I have used WWW method, Resource.Load<> but didn't worked out for me.

    Any help appreciated,

    Thank you.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    Forget Resource.Load , that uses only stuff that was that way in the game at build time.
    You could make configurations files for stuff like prizing into the Streaming assets folder and use the www or IO class to read the text files.

    For models its not that easy, since unity does not support run-time importing from models.
    There are some assets that you can buy (or Build yourself) that can load model files at run-time.
    Textures can be loaded via the www class.
     
    Kishan-Sisangia likes this.
  3. Kishan-Sisangia

    Kishan-Sisangia

    Joined:
    Mar 21, 2013
    Posts:
    11
    Thank you. Yes I have completed the text file task. But I got stucked in importing models at runtime. Because it would not be appropriate to build .exe everytime for one or two objects to load in scene.

    So do you have any link for that paid assets? Because I couldn't found any. And of-course I am trying to build it on my own.

    Thanks again.
     
  4. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276