Search Unity

Problem with Application.ExternalCall. Please help.

Discussion in 'Scripting' started by Pablo, May 21, 2009.

  1. Pablo

    Pablo

    Joined:
    Dec 1, 2008
    Posts:
    18
    Hi.

    I have a problenm with this.

    In my Unity JavaSript I call to this external function in the HTML body.

    <script language="JavaScript" type="text/javascript">
    <!--
    // Using the above call from Unity, this will receive
    // "Hello from Unity!" as the argument.
    function MyFunction2( arg )
    {
    alert( arg );
    }
    -->
    </script>


    Well, after click in alert´s OK, in my Unity world I lose control with arrows on my First Person Controller. It move without press arrows on the keyboard.

    Why?

    How can I made?
     
  2. Tempest

    Tempest

    Joined:
    Dec 10, 2008
    Posts:
    1,286
    When you click the alert, the Unity window is no longer the target of your input. If you click on the Unity window after you click the alert, you should be able to get normal controls again.
     
  3. Pablo

    Pablo

    Joined:
    Dec 1, 2008
    Posts:
    18
    thanks. Is not exactly that, but i think that help the sufficient for solution.