• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,133 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0053 秒)

311. 无法触发浏览器文件上传框 [ 61%]

...t;input type="file" id="file" style="display: none;"></input> <script type="text/javascript"> var btn = document.getElementById('btn'); btn.addEventListener('click', function(){ document.getElementById("file").click(); }); </script> </body> </html>我想你理解错...

来源: Laya_社区 发布时间: 20170511

312. 苹果上架有问题啊 , !!!!!! [ 61%]

...r:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app behavior and/or call SPI, based on the contents of the downloaded script. Even if the remote resource is not intentionally malicious, it could easily be hijacked via a Man In The Middle (MiTM) a...

来源: Laya_社区 发布时间: 20171221

313. Maximum call stack size exceeded [ 61%]

... class GameConfig {         static init() {             //注册Script或者Runtime引用             let reg = Laya.ClassUtils.regClass;     reg("script/GameMain.js",GameMain);         }     }     GameConfig.width = 640;     GameConfig.height = 1136;     GameConfig.sca...

来源: Laya_社区 发布时间: 20201110

314. layaAir TS项目如何引用protoBuf库? [ 61%]

...件添加到这里-->     <!--jsfile--Custom-->     <script type="text/javascript" src="libs/protobuf.js"></script>     <!--jsfile--Custom--> 3、测试代码参考了上面那个连接,但稍微做了修改: // 程序入口 class GameMain{     constructo...

来源: Laya_社区 发布时间: 20170216

315. LayaFlash项目如何进行LayaPlayer版本测试? [ 61%]

...和下载)  使用方式: a、打开Redist文件夹,找到内部的script文件夹           b、打开script文件夹找到index.js文件           c、打开index.js文件,拖动滚动条至末尾           d、将//单行注释去掉解开其中一个loadUrl()方法,将h...

来源: Laya_社区 发布时间: 20151028

316. [LayaAir3]LAYA3IDE中勾选了弹窗显示全局错误,有些错误无法弹弹窗提示 [ 61%]

...无法弹弹窗提示 比如鼠标事件触发回调函数中有报错,Script脚本类onStart函数有报错等... 在这些函数执行中如果触发错误都只会在控制台打印错误,而不会弹出提示,因为底层代码中这些逻辑被try了catch中只打印了打印错误日志...

来源: Laya_社区 发布时间: 20240710

317. [LayaAirIDE3][3.1.0 B2] 继承PixelLineRenderer的脚本会在编辑器中触发onUpdate [ 60%]

...的: 1.因为我在使用的时候,一般脚本里都是继承的Laya.Script,然后在脚本里再去使用其它类。我看到您直接继承的Laya.PixelLineRenderer,一般不这样使用。 2.如果您需要绘制像素线,使用的是PixelLineSprite3D。具体的用法可以参考”...

来源: Laya_社区 发布时间: 20231209

318. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...Radio: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Radio }) public radio: Laya.Radio; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radio.skin = "...

来源: Laya3.0_文档 发布时间: 20240910

319. 射线检测报错,outHitInfo.sprite3D=null; [ 60%]

射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene ...

来源: Laya_社区 发布时间: 20181020

320. mac laya 2.5beta ts示例工程 tsconfig.json tartget 改成es5 编译报错 [ 60%]

...54] Starting 'compile'... { Error: /Users/xxxxx/projects/mylaya11/Tank/src/script/Bullet.ts(4,29): semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. at error (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/rollup/dist/rollup.js:...

来源: Laya_社区 发布时间: 20200311