- 最后登录
- 2017-5-15
- 注册时间
- 2012-3-1
- 阅读权限
- 90
- 积分
- 32973
  
- 纳金币
- 32806
- 精华
- 12
|
請問使用Application.ExternalCall這個funtion以後,如何在unity裏面獲取js return過來的結果?In Unity:
Application.ExternalCall ("MyFunction2", "Hello from Unity!");JS:
<script language="JavaScript" type="text/javascript">
<!--
// Using the above call from Unity, this will receive
// "Hello from Unity!" as the argument.
function MyFunction2( arg )
{
return arg;
}
-->
</script> |
|