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

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

401. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...加装饰器暴露cube的属性,代码如下: @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; 然后在IDE中,将Cube节点拖入装饰器暴露的属性入口,即可用代码控制Cube节点了。 1. 平移变换 平移变换的定义如下: /** * 平移变换。 * @param t...

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

402. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 78%]

..._super) { function BackGround() { BackGround.super(this); this.bg=new Laya.sprite; this.bg.loaImage("war/beijing.png"); this.addchild(this.bg);  }; Laya.class(BackGround,"BackGround",_super) return BackGround; })(Laya.sprite); BackGround.super(this);这个报错 Cannot read property 'call' of undef...

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

403. this.bitmap.activeResource is not a function. [ 78%]

...; rankTexture.bitmap.alwaysChange = true;//小程序使用,非常费 let sprite = new Laya.Sprite(); sprite.graphics.drawTexture(rankTexture, 0, 0, rankTexture.width, rankTexture.height); this._content.addChild(sprite); sprite.pos(40, 190);报:this.bitmap activeResource is not a function 2019-09...

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

404. [BUG]大量调用 graphics.drawCircle 导致错误 [ 78%]

...ics.drawCircle 导致错误 代码: for (var i = 0; i < 500; i++) { var Sprite = new Laya.Sprite(); Sprite.graphics.drawCircle(Math.random() * 500, Math.random() * 800, 50, "#666666", "#555555", 5); Laya.stage.addChild(Sprite) } 其他: Laya.init(Laya.Browser.width, Laya.Browser.height, Laya.WebG...

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

405. [LayaAir3]UI3d点击判定问题 [ 78%]

...容,先查找距离近的ui3d的点击判定导致全都走到了一个sprite的事件触发上,这个问题已经记录,您可以暂时根据项目需求调整ui3dMangaer里面UI3DList属性的排序规则来处理问题,后面会更新问题内容。 2024-05-08 0 1 分享 微博 QZONE 微...

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

406. LayaAir1.7.19.1 Beta预加载资源出问题 [ 78%]

...quot;)的方式也加载过,没成功。 Laya_Aaron • 2018-07-26 11:19 sprite3d.load 188*****949 • 2018-07-26 11:23 create是有问题吗,改成sprite3d.load或者Scene.load的话,项目改动会比较大 188*****949 • 2018-07-26 11:26 再说sprite3d.load调用的不是create? Laya_Aar...

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

407. laya.ui.Tree [ 77%]

...vents Packagelaya.uiClasspublic class TreeInheritanceTree Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyD...

来源: Laya2.0_api 发布时间: 20190513

408. 限制区域拖动效果,为什么会无法限制呢? [ 77%]

...会无法限制呢? 代码如下。 UI是我从编辑器创建了一个sprite 里面套了一个图片!拖动一次后,直接跳出区域了。 /* * name; */  var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Event = Laya.Event; var Rectangle = Laya.Rectangle; var Texture = Laya.Texture; ...

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

409. 2D聚光灯 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...照氛围。 二、在LayaAir-IDE中使用 在LayaAir-IDE中,添加一个sprite,然后在sprite上添加一个2D聚光灯组件,如图2-1所示。 (图2-1) 一个2D网格渲染器接收的聚光灯的效果如图2-2所示, (图2-2) 2D聚光灯的特有属性如下: 内半径:内...

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

410. rigidBody.applyForce 物体不会移动 [ 77%]

...mera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0, 0.2); private translateS: Laya.Vector3 = new Laya.Vector3(0, 0, -0.2); private translateA: Laya.Vector3 = new Laya....

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