大约有 3,617 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
Laya_社区(2682) Laya3.0_api(265) Laya2.0_文档(227) Laya2.0_api(113) Laya3.0_文档(104) laya_api(98) Laya_示例(83) Laya2.0_示例(45)
...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
...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
... 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
...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
...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
...烦, 可否参考其他动画引擎, 就需要加一个参数,例如: loop:true = 无限循环, loop:3 = 只循环3次 岂不是很方便? 还有 , 能否增加一个回调,就是动画开始之前执行 . 例如, 一个拥有delay属性延时执行的动画, 从隐藏到显示,(不是alpha动画) ...
来源: Laya_社区 发布时间: 20171021
...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
... if (property instanceof Material) { mat = true } if (!property) break; } keyframeNodeOwner = this._keyframeNodeOwnerMap[fullPath] = new KeyframeNodeOwn...
来源: Laya_社区 发布时间: 20240517
...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
...,localSp:Laya.Sprite):Laya.Point{ return localSp.globalToLocal(globalPoint,true); }globalPoint: 绿色框的坐标 -- 舞台中央坐标(Laya.stage.width*.5,Laya.stage.height*.5) localSp:黑框容器对象 直接带入上面方法即可,中央的坐标你只知道相对于绿色框的坐标,...
来源: Laya_社区 发布时间: 20180502