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

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

411. 如何判断弹性滑动结束了? [ 63%]

...是手机浏览器还是pc浏览器? 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya2.1.1 微信排行榜无法滑动,按钮也无法点击 as3.0下3D引擎中通过滑动控制camera的问题 如何判断被加载的Swf里的MovieClip播放完成? 问题状态...

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

412. Mac下LayaAirIDE1.7.20版本声音预加载失败,但windows下同个版本加载正常 [ 62%]

...UND}         ];         Laya.loader.load(assetArr,Handler.create(this,onComplete),Handler.create(this,onProgress)); } private function onProgress(loadNum:Number):void { }   private function onComplete():void { } 附件 : --> 2018-11-12 添加评论 免费帖 --> 分享 微博 QZONE 微信...

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

413. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 62%]

...信 cuixueying 赞同来自: Tween.to(sp,{x:400},1000,null,Handler.create(this,onTweeed)) onTween就是你的缓动完成后的回调function 2017-01-04 0 2 分享 微博 QZONE 微信 匿名用户 赞同来自: function begingame(){     console.log("开始游戏");     var Tween   = Laya.Twee...

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

414. DOM元素-视频 [ 62%]

...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]);class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.AL...

来源: Laya_示例 发布时间: 20251130

415. 文本-Overflow [ 62%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } private createTexts(): void { var t1: Text = this.createText(); t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2: Text = this.createText(); t2.overflow = Text.SCROLL; t2.pos(10, 110); var t3: Text = th...

来源: Laya_示例 发布时间: 20251130

416. 高级应用-渲染纹理 [ 62%]

.../res/threeDimen/staticModel/LayaPlane/LayaPlane.lh" ], Laya.Handler.create(this, onComplete)); function onComplete() { setMaterials(scene.getChildByName("scene")); layaPlane.transform.localPosition = new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler....

来源: Laya_示例 发布时间: 20251130

417. 射线检测-点击行走 [ 62%]

...ture/layabox.png"); box.meshRender.material = mat; Laya.timer.frameLoop(1, this, checkHit); var ray = new Laya.Ray(new Laya.Vector3(0, 0, 0), new Laya.Vector3(0, 0, 0)); var point = new Laya.Vector2(); var _position = new Laya.Vector3(0, 0.25, 0); var _quaternion = new Laya.Quaternion(); var _outHit...

来源: Laya_示例 发布时间: 20251130

418. 屏幕适配-自动竖屏 [ 62%]

....stage.screenMode = Stage.SCREEN_VERTICAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; te...

来源: Laya2.0_示例 发布时间: 20251130

419. 屏幕适配-自动横屏 [ 62%]

...tage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; t...

来源: Laya2.0_示例 发布时间: 20251130

420. 如何启用摇一摇 [ 62%]

...r_yao1yao=(function(){ function Controller_yao1yao(model){ /*__JS__ */var _this=this; /*__JS__ */_model=model; /*__JS__ */var SHAKE_THRESHOLD=100; /*__JS__ */var last_update=0; /*__JS__ */var x=y=z=last_x=last_y=last_z=0;; /*__JS__ */var canShake=1; /*__JS__ */if (window.DeviceMotionEvent){window.ad...

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