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

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

21. 富文本过程中我遇到的问题以及解决方法(超链接换行以及无法接收超链接鼠标事件以及br或者 标签会崩溃报错的问题) [ 91%]

...       if (words == null && (!this._children || this._children.length == 0))                 return false;             if (words) {                 for (var i = 0, n = words.length; i < n; i++) {                     out.push(words[i]);             ...

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

22. 鼠标交互-双指旋转(多点触控) [ 91%]

...上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } onMouseMove(e) { let touches = e.touches; if (to...

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

23. 鼠标交互-双指旋转(多点触控) [ 91%]

... function onMouseDown(e) { var touches = e.touches; if (touches && touches.length == 2) { preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); } } function onMouseMove(e) { var touches = e.touches; ...

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

24. 请教如何实现完美的LoopList?尝试了下总是有倒带的卡顿动作隐藏不掉 [ 91%]

...                 this.WheelList.scrollBar.value=this.datas.length-1;                 // this.WheelList.tweenTo(this.datas.length,0);             }             else             {                 this.WheelList.set_vi...

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

25. 设置cacheAs = bitmap时, drawCanvas 的一个bug [ 90%]

...) { //生成渲染结果到src._targets上 /* this._submits[this._submits._length++] = SubmitCanvas.create(src, 0, null); _curSubmit = SubmitBase.RENDERBASE; //画出src._targets //drawTexture(src._targets.target.getTexture(), x, y, width, height, 0, 0); */ //应用并清空canvas中的指令。如...

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

26. 最新版本 1.7.5 beta fontClip [ 90%]

...split('');                 for (var i:int = 0; i < splitArr.length; i++) {                     var te:Texture = _sources[splitArr[i]] as Texture;                     if (_align != "right") {                         this.graphics.drawText...

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

27. [LayaAirIDE 2.0]TextInput真机输入时显示蓝色字,求解 [ 90%]

... = "#888"; // 用户什么也没输入则恢复默认状态 if (input.text.length == 0) { this._setPlaceHolder(input); // input.align = "right"; // input.type = "text"; } lable.color = "#888"; break; } } private _checkInput(input: Laya.TextInput) { let sp_icon: Laya.Sprite = new Laya.Sprite(); // ...

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

28. 鼠标交互-双指缩放(多点触控) [ 90%]

...上才有 touches 属性 let touches = e.touches; if (touches && touches.length == 2) { lastDistance = this.getDistance(touches); Laya.stage.on(Event.MOUSE_MOVE, this, this.onMouseMove); } } onMouseMove(e) { let distance = this.getDistance(e.touches); //判断当前距离与上次距离变化,确...

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

29. 鼠标交互-双指缩放(多点触控) [ 90%]

... function onMouseDown(e) { var touches = e.touches; if (touches && touches.length == 2) { lastDistance = getDistance(touches); Laya.stage.on(Event.MOUSE_MOVE, this, onMouseMove); } } function onMouseMove(e) { var distance = getDistance(e.touches); //判断当前距离与上次距离变化,确定...

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

30. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 90%]

...his.isFinish){ return null; } let armature = null; if(this.mArmatureUnUsed.length > 0){ armature = this.mArmatureUnUsed.pop(); } if(this.mFactory){ armature = this.mFactory.buildArmature(0); this.mArmatureUsed.push(armature); return armature; } }  public recycleArmature(armature:Laya.Skeleton){ ...

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