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

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

431. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 79%]

... i = 0; i < 16; i++) { let person = templet.buildArmature(); Laya.stage.addChild(person); person.x = i * unitWidth; person.y = y; person.play("hongse_daiji", true); } }));  //飞碟 this.genSpine("res/spine/ludo_feidie.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) => {   //...

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

432. UI-CheckBox [ 79%]

...kin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: CheckBox): void { checkBox.label = checkBox.selected ? "已...

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

433. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

... private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建成功。 (图3-3) 3.3...

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

434. 关于这个timer我的跑的快在 自己出完牌之后没有人比我的牌大了。可是我的牌还是出不去 [ 79%]

...; img.width = 76; img.height = 110; img.pos(200 + i * 35, 230); Laya.stage.addChild(img); this.reciveOutPoker.push(img); this.outHandPoker.push(this.aaa.playerNameList[i].playerhandpoker[j]); this.lastPaixing = 1;  for (let x = 0; x < this.outHandPoker.length; x++) { for (let j = 0; j < this....

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

435. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 79%]

...;          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console.log("...

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

436. UI-CheckBox [ 79%]

...kin: string): CheckBox { var cb: CheckBox = new CheckBox(skin); Laya.stage.addChild(cb); cb.labelColors = "white"; cb.labelSize = 20; cb.labelFont = "Microsoft YaHei"; cb.labelPadding = "3,0,0,5"; return cb; } private updateLabel(checkBox: CheckBox): void { checkBox.label = checkBox.selected ? "已...

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

437. getimagedata直接调用无法获取有效像素问题 [ 78%]

...使用loadImage         var ape = new Sprite();         Laya.stage.addChild(ape);         ape.loadImage("../../res/apes/monkey3.png");           // 方法2:使用drawTexture         Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function()         {  ...

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

438. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 78%]

..."; txt.size(300, 50); txt.fontSize = 20; txt.color = "#ffffff"; Laya.stage.addChild(txt); return txt; } } } new laya.HelloLayabox(); ``` ![2](img/2.png) 可以看到3种方法的对文本处理的不同,每种处理都有各自的优缺点,性能比最高的还是hidden。 除了通过对文本...

来源: Laya2.0_文档 发布时间: 20210715

439. list 加载动画为什么实现的效果会错乱掉? [ 78%]

... ani.getGraphicBounds(); ani.scale(80/bounds.width ,80/bounds.height) this.addChild(ani) } } Laya.class(Item1, "Item1", Box); var List = Laya.List; function setup(effList) { var list = new List(); list.itemRender = Item1; list.repeatX = 3; list.repeatY = 4; list.x = (Laya.stage.width - WID * list.re...

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

440. Tree属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 78%]

...景。 selectBox.height = 32; selectBox.x = 13; selectBox.left = 12; this.addChild(selectBox); var folder = new Clip("../../res/ui/tree/clip_tree_folder.png", 1, 3); folder.name = "folder"; //设置 folder 的name 为“folder”时,将被识别为树结构的文件夹开启状态图表。2帧:...

来源: Laya2.0_文档 发布时间: 20210715