Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

shell() built-in function

Discussion in 'Scripting' started by htwarrior, Mar 29, 2007.

  1. htwarrior

    htwarrior

    Joined:
    Feb 25, 2006
    Posts:
    40
    Hi , I am using the shell() commnad with the previous version of Unity without problems (in java script )but after upgrading Unity i am having a message : Unknown identifier 'shell' . There is a problem with the new version?

    Thanks
    HTwarrior
     
  2. freyr

    freyr

    Joined:
    Apr 7, 2005
    Posts:
    1,148
    Sadly it was cut to reduce size of the player.

    Luckily it's simple to replace, so I have written a replacement class and uploaded it to the Unifycommunity Wiki.

    Just place the Shell.js script into our project and add an import Shell; to the top of the scripts that used the old shell function.

    See: http://www.unifycommunity.com/wiki/index.php?title=Shell
     
  3. htwarrior

    htwarrior

    Joined:
    Feb 25, 2006
    Posts:
    40
    Thanks!!