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

大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0085 秒)

561. 1.7.18beta下转换3D坐标不正确 [ 92%]

....stage.screenMode = Laya.Stage.SCREEN_NONE; private animate(): void {    this._position.x = Math.sin(this.scaleDelta += 0.01);    this.layaMonkey3D.transform.position = this._position;    this.camera.viewport.project(this.layaMonkey3D.transform.position, this.camera.projectionViewMatrix, this....

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

562. list的selectHandler属性连续点击同一个item不能重复接收事件 [ 92%]

...      list.selectEnable = true;     list.selectHandler = new Handler(this, onSelect);        function onSelect(index)     {         alert("当前选择的索引:" + index);     }      第一次点击时有事件响应:       再次点击(不要点击其它的列表)...

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

563. 高级应用-渲染纹理 [ 92%]

.../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_示例 发布时间: 20241002

564. this.getStyle().setTranslateX(value)有错 [ 92%]

this.getStyle().setTranslateX(value)有错  this.getStyle().setTranslateX(value);  这个一直出错 大佬看看,很急! 附件 : --> 2019-04-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron ...

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

565. 无限循环滚动列表 [ 92%]

...E 微信 189*****192 赞同来自: 他也是自己写的  监听滑动  this._list.on(fairygui.Events.SCROLL, this, this.doSpecialEffect); 通过cell 距离 设置他的缩放比 MainPanel.prototype.doSpecialEffect = function () {         //change the scale according to the distance to the mi...

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

566. QQ玩一玩 API 中没有 BKLaya.tools.BinaryLoader 的定义 [ 92%]

...tclass.BKWebSocket var BKWebSocket=(function(){ function BKWebSocket(url){ this._socket=null; this.onopen=null; this.onmessage=null; this.onclose=null; this.onerror=null; this._socket=new BK.WebSocket(url); var _self; _self=this; this._socket.onClose=function (ws){ if (_self.onclose !=null){ _self.o...

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

567. 关于创建Sprite获取大小 [ 92%]

...于这个,如果需要width和height, new window.Laya.Rectangle(0, 0, this.img_width, this.img_height, '#FF0000'), 然后设置sprite.hitArea = rect. 但是这个其实很弱。 首先,这个rect不会随着图片的旋转而旋转,所以要做精细的碰撞检测得自己写逻辑 kezhiy...

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

568. 我用的HBox做的进度条为啥总是一闪一闪的。 [ 92%]

...Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Laya.HBox; private updateFont(value:number){ if(!this.hbox){ this.hbox = new Laya.HBox(); this.addChild...

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

569. Laya.timer.loop() 报错 Cannot read property 'loop' of null [ 92%]

...umber = 0; private y0:number = 0; constructor(){super();} onEnable():void{ this.x = this.x0; this.y = this.y0; Laya.timer.loop(20, this, this.frameWork); // 每 20 ms 执行一次 } private frameWork():void{ this.y = this.y0 + 10 * (this.n % 3); alert("move "); } }代码放在一个 Image 组件的 ...

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

570. workerLoader问题 [ 92%]

...本:2.2.0beta1,ts_new 看代码 constructor(){ super();             this.worker = new Worker(WorkerLoader.workerPath); this.worker.onmessage = function(evt:any):void { //接收worker传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问...

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