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

大约有 1,614 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0118 秒)

1461. Cannot read property 'load' of null [ 45%]

...", "res/img/map/29.jpg", ]; Laya.loader.load(this.skins,laya.utils.Handler.create(this, this.LoadSuccess,null,false)); } private LoadSuccess() { ViewManager.getInstance().CreateView(contant.loginId,new LoginView()); ViewManager.getInstance().ShowView(contant.loginId); } public SwictMap(index: number...

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

1462. 滤镜的集中实现 [ 45%]

...L); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 createImg(200,50); //红色滤镜 creteRedFilter(); //创建发光滤镜位图**/ createGlowFilter(); //创建阴影滤镜位图 createShadeFilter(); //创建糊滤滤镜位图 createBlurFilter();           /**创建位...

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

1463. Clip属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 45%]

...资源 Laya.loader.load([buttonSkin, clipSkin, bgSkin], laya.utils.Handler.create(this, onSkinLoaded)); })(); function onSkinLoaded() { showBg(); createTimerAnimation(); showTotalSeconds(); createController(); } function showBg() { var bg = new Image(bgSkin); bg.size(224, 302); bg.pos(Laya.stage.wid...

来源: Laya2.0_文档 发布时间: 20210715

1464. swf在layaairts里播放的问题,播放不了,swf在群文件star.swf [ 45%]

...r.load([{"url":"res/swf/star.swf","type":Laya.Loader.BUFFER}],Laya.Handler.create(this,this.onloadswf)); let loader:Laya.Loader = new Laya.Loader(); let context:Laya.Context = new Laya.Context();         } private onloadswf():void { // console.log("ssss"); // let mc:Laya.MovieClip = Laya.loa...

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

1465. 在模型有刚体的情况下,怎么才能让模型只围绕一个轴进行旋转 [ 45%]

...prite3D.load("h5/LayaScene_car/Conventional/car.lh",Laya.Handler.create(this,(sp:Laya.Sprite3D)=> { this.car = sp.getChildAt(0).getChildAt(0) as Laya.Sprite3D; this.scene.addChild(this.car); this.rig = (this.car.getComponent(Laya.Rigidbody3D) as Laya.Rigidbody3D) })); 源 • 2019-01-11...

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

1466. Cannot read property 'rayCast' of undefined [ 45%]

...ad("res/scene/LayaScene_webgl_sky/Conventional/webgl_sky.lh", Laya.Handler.create(this, this.onLoadFinish)); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); } onLoadFinish(layaMonkey){ this.layaMonkey=this.scene.addChild(layaMonkey); // Laya.timer.frameLoop(1, this, this.onFrameLoop); } ...

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

1467. 动画不显示 [ 45%]

动画不显示 使用  Animation.createFrames(  创建动画模版的动画,在调试器和浏览器上显示都正常 但是打包成测试APK,动画却不显示。 游戏有2个图层 ,地图层和一个角色动画,打包成APK后,地图层正常显示,角色动画不显示,打...

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

1468. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 44%]

...; //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算符,相当于/2 用>>效率更高) var offsetX:numb...

来源: Laya2.0_文档 发布时间: 20210715

1469. iOS真机运行报错--- 加载游戏失败,可能由于您的网络不稳定,请退出重进 [ 44%]

...eSweeper6[7091:2932001] Download [ ]:http://stand.alone.version/index.html Creating context 1024, 768, 22018-03-15 11:24:58.270942+0800 MineSweeper6[7091:2932001] curl_easy_perform failed, code=6 src=http://stand.alone.version/index.html 2018-03-15 11:24:58.271059+0800 MineSweeper6[7091:2932001] Dow...

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

1470. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 44%]

...件: Laya.loader.load("res/atlas/template/QuestionDialog.atlas", Handler.create(null)); 对应的场景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();          dialog.btn_question_dialog_next.on(Laya.Event.CLI...

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