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

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

3351. 【解决】富文本html下划线换行bug [ 44%]

...rds.length-1].y){ let index = 0; let slsIndex;//secondLineStartIndex while(true){ if(words[index].y != words[index+1].y){ slsIndex = index; break; } index++; } let firstlineY = words[0].y+words[0].height; graphic.drawLine(words[0].x,firstlineY,words[slsIndex].x+words[slsIndex].width,firstlineY,color...

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

3352. 2D方向光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 44%]

...xt.font = "Arial"; this.displayText.fontSize = 24; this.displayText.bold = true; this.displayText.x = 10; // 例如,设置在屏幕左上角 this.displayText.y = 10; this.owner.scene.addChild(this.displayText); // 在场景中添加文本显示 } onUpdate(): void { // 更新时间 this.dayTime = (...

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

3353. 安装layaair2-cmd一直失败 [ 44%]

... lifecycle jpeg-recompress-bin@4.0.0~postinstall: unsafe-perm in lifecycle true 31918 verbose lifecycle jpeg-recompress-bin@4.0.0~postinstall: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Administrator\AppData\Roaming\npm\node_modules\layaair2-cmd\n...

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

3354. 我参照着技术文档里的动画多层混合的教程,在unity里设置了一只蝎子以及它的两个动画层,一个动画层只让蝎子的脚动,一个动画层只让蝎子的身子动,可我导入到laya以后,蝎子要么不动,要么全身动 [ 44%]

...ollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 问题状态 最新活动: 2021-01-25 18:11 浏览: 241 关注: 2 人 ParadiseKiss • 2021-01-25 18:21 别气馁可以的 小火火 • 2021-01-25 18:24 嗯嗯嗯 184*****121 • 2021-01-25 19:34 这个版...

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

3355. LayaBox进阶之UI管理类 [ 44%]

...iew:Object){ if (view && !this._viewCreated) { this._viewCreated = true; Laya.SceneUtils.createByData(this, view); }  this.onInit(); this.onShow();  Laya.timer.frameLoop(1, this, ()=>{ // console.info(this); this.onUpdate(); }); }  /*****************************************************...

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

3356. 建议给Tween增加一些功能, 例如无限循环 , 增加一些回调函数 [ 44%]

...烦, 可否参考其他动画引擎, 就需要加一个参数,例如: loop:true = 无限循环, loop:3 = 只循环3次 岂不是很方便? 还有 , 能否增加一个回调,就是动画开始之前执行 . 例如, 一个拥有delay属性延时执行的动画, 从隐藏到显示,(不是alpha动画) ...

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

3357. LayaAir下加载阿拉伯TTF字体,手机上显示时左右顺序反了。 [ 44%]

...e.bgColor = "#0e277a"; Laya.stage.frameRate = "fast"; Config.atlasEnable = true;   Text.CharacterCache = false; Text.setTextRightToLeft(); //设置文字排版模式为右到左。 Styles.labelColor = "#FFFFFF"; Font.defaultColor = "#FFFFFF"; Font.defaultSize = 36; Font.defaultFamily = "Arial"; //A...

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

3358. [LayaAirIDE3]时间轴动画调了材质引用类型的属性,调用play()接口切状态的时候调用_revertDefaultKeyframeNodes报材质属性空 [ 44%]

...  if (property instanceof Material) {                     mat = true                 }                 if (!property)                     break;             }              keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath] = new KeyframeNodeOwn...

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

3359. emoji表情文字乱码 [ 44%]

...gment.prototype;     Laya.imps(__proto,{"laya.webgl.text.ICharSegment":true})     __proto.textToSpit=function(str){         this._sourceStr=str;         var texLen = str.length;         var idx = -1;         this._words = ;         while (++idx < te...

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

3360. 关于2d内的坐标转换问题 [ 44%]

...,localSp:Laya.Sprite):Laya.Point{ return localSp.globalToLocal(globalPoint,true); }globalPoint: 绿色框的坐标 -- 舞台中央坐标(Laya.stage.width*.5,Laya.stage.height*.5) localSp:黑框容器对象 直接带入上面方法即可,中央的坐标你只知道相对于绿色框的坐标,...

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