大约有 2,610 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0087 秒)
Laya_社区(2270) Laya2.0_文档(96) Laya3.0_api(80) Laya2.0_api(74) Laya3.0_文档(58) laya_api(23) Laya_示例(7) Laya2.0_示例(2)
...加装饰器暴露cube的属性,代码如下: @property({ type: Laya.Sprite3D }) public cube: Laya.Sprite3D; 然后在IDE中,将Cube节点拖入装饰器暴露的属性入口,即可用代码控制Cube节点了。 1. 平移变换 平移变换的定义如下: /** * 平移变换。 * @param t...
来源: Laya3.0_文档 发布时间: 20240910
..._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
...; 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
...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
...容,先查找距离近的ui3d的点击判定导致全都走到了一个sprite的事件触发上,这个问题已经记录,您可以暂时根据项目需求调整ui3dMangaer里面UI3DList属性的排序规则来处理问题,后面会更新问题内容。 2024-05-08 0 1 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20240430
...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
...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
...会无法限制呢? 代码如下。 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
...照氛围。 二、在LayaAir-IDE中使用 在LayaAir-IDE中,添加一个sprite,然后在sprite上添加一个2D聚光灯组件,如图2-1所示。 (图2-1) 一个2D网格渲染器接收的聚光灯的效果如图2-2所示, (图2-2) 2D聚光灯的特有属性如下: 内半径:内...
来源: Laya3.0_文档 发布时间: 20250214
...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