How to open Unity3D files?

Discussion in 'Tech Chat' started by lonesome killer, Feb 9, 2014.

  1. lonesome killer

    lonesome killer Banhammered

    I have a bunch of .unity3d files I want to open to get some sound files out.
     
  2. English

    English Global Mod

  3. Snuffles ¯\_(ツ)_/¯

    Snuffles ¯\_(ツ)_/¯ Achievement Hunter

  4. English

    English Global Mod

    Got adblocker so I dont see no ads :p
     
  5. Arron Dominion

    Arron Dominion Achievement Hunter

    Looks like it is near impossible to do what you ask lonesome based on what I have seen so far.
     
  6. lonesome killer

    lonesome killer Banhammered

    Yes I Google'd it for about 2 hours and could find nothing.
     
  7. lonesome killer

    lonesome killer Banhammered

    OK I found this program to do it. https://github.com/ata4/disunity

    But it's all command prompt based. I have no idea how to input commands in command prompt. Oh mighty Pengu help me!

    Usage
    disunity -c <command> <file>
    Note: depending on the platform, you may need to run disunity.bat (Windows) or disunity.sh (Linux/MacOS). In case the launch script fails, try java -jar disunity.jar.

    Commands
    dump - Converts the asset file to plain text, similar to the binary2text tool shipped with the Unity editor.

    dump-struct - Like dump, but just for the data structure.

    extract - Extracts supported asset content and stores it in regular files. Default command if the -c parameter is omitted.

    extract-raw - Extracts the raw serialized binary data from the asset.

    learn - Learns the structure from an Unity webplayer bundle (*.unity3d) and stores any new structs in the database file structdb.dat. Its data is required to deserialize standalone asset files, which usually don't contain any structure data.


    info - Outputs various information for assets and asset bundle files.


    info-stats - Outputs class usage statistics for asset files.


    unbundle - Extracts Unity webplayer bundles (*.unity3d).


    fixrefs - Fixes shared asset references in extracted scene files by converting relative to absolute paths so they can be opened with the Unity editor correctly.


    Note: If the shared assets are moved to a different folder, the scene needs to be fixed again.

    split - Attempts to split an asset file into multiple smaller asset files.


    list - Lists all objects and files in a tabular form.


    Other parameters
    Run disunity with the -h parameter for further usage.
     
  8. Arron Dominion

    Arron Dominion Achievement Hunter

    Command prompt is somewhat easy if you are used to linux terminals.

    1. Open Command Prompt

    The command cd is for Changing Directory
    example:
    cd Documents

    2. Navigate to the directory containing disunity

    For a file, you will need a directory and the file with extension. An example "C:\Users\Karl\Documents\test.txt"

    3. type disunity -c (yourcommandhere such as dump) "C:\..."

    4. press enter

    5. things will display in the command prompt

    6. respond to any questions the program asks

    7. kaboom! You are probably done. If not repeat 3-6 for each file.
     
  9. lonesome killer

    lonesome killer Banhammered

  10. VintagePC

    VintagePC GodModePC (One-man Show) VF4-S (Server Operator) Forum Operator Minecraft Operator Global Moderator Staff Member DMC Tester TF2L developer

    Very likely. My understanding is that the .unity3d file is a "web player" asset file. I suspect what's happening is the decompiler has to pretend to be running it on a web page to get access to the contents of said file.
     
  11. lonesome killer

    lonesome killer Banhammered

    But you can still make unity standalone games without a browser. Or is it coded om some kind of "fake" browser.
     
  12. VintagePC

    VintagePC GodModePC (One-man Show) VF4-S (Server Operator) Forum Operator Minecraft Operator Global Moderator Staff Member DMC Tester TF2L developer

    I suspect the web browser method is probably the easiest and most cross-platform way to decompile the asset files.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice