大约有 7,515 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0143 秒)
Laya_社区(6799) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(80) Laya2.0_示例(57)
调用图集中小图片失败 var sp:Sprite=new Sprite(); sp.loadImage("img/btnbg2.png"); Laya.stage.addChild(sp); var sp1:Sprite=new Sprite(); sp1.loadImage("system/twoP.png"); Laya.stage.addChild(sp1); img图集中的小图可以调用到,system的图集调用不到,在浏览器的资源列表...
来源: Laya_社区 发布时间: 20170518
...好,在我的DEMO中,代码见附件 只要把role_test.scene中的sprite放在UIVIEW之上,2D物理系统关节绑定就会出错! 如果sprite放在UIVIEW之下,就可以正常绑定,百思不得其解请官方帮忙看一下,项目时间很紧,工作量又大,现在出现这...
来源: Laya_社区 发布时间: 20190919
...s = Laya.Browser.document.getElementById("layaCanvas"); var spi = new Laya.Sprite(); var spi1 = new Laya.Sprite(); var spi2 = new Laya.Sprite(); this.tempTexture2D.loadImageSource(cans, true); spi.texture = spi1.texture = spi2.texture = this.tempTexture; //创建模糊滤镜实例 var blurFilter = n...
来源: Laya_社区 发布时间: 20191230
... 我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.Box...
来源: Laya_社区 发布时间: 20190428
升级到2.2.0Beta报错Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 将tsconfig.json里的"target":"es6"改为"es5"会报错: Uncaught TypeError: Class constructor Sprite cannot be invoked without 'new' 会升级到2.2.0Beta主要是看升级日志里,这个...
来源: Laya_社区 发布时间: 20190812
... 也没有详细说明如何通过ArrayBuffer构造Texture。 我尝试了 Sprite.loadImage(ArrayBuffer) Sprite.loadImage(base64(ArrayBuffer)); 都不能显示图片。 2017-12-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20171207
...() export class Script extends Laya.Script { //获取节点 @property(Laya.Sprite) public sp: Laya.Sprite; onAwake(): void { //创建后期处理实例 this.sp.postProcess = new Laya.PostProcess2D(); //创建变色效果 let colorEffect2D = new Laya.ColorEffect2D(); //创建后期处理效果数组 ...
来源: Laya3.0_文档 发布时间: 20251010
...ine", true); // 设置画布上的对齐参照物 var reference = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(100, 100); reference.size(600, 400); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); // 每次舞台尺寸变更时,都会调用Utils....
来源: Laya_示例 发布时间: 20251209
....3 使用Mesh2DRender会导致ColorFilter影响其他对象 先创建一个Sprite设置texture,并设置ColorFilter。再创建一个Sprite添加Mesh2DRender(这两者层级关系必须是mesh在上层) 后续层级在他们上面的Sprite,不管是使用graphics绘制,还是设置texture...
来源: Laya_社区 发布时间: 20250605
...isplay.cssClasspublic class TextStyleInheritanceTextStyle laya.display.css.SpriteStyle 文本的样式类 Public Properties PropertyDefined By align : String 表示使用此文本格式的文本段落的水平对齐方式。 TextStyle asPassword : Boolean 指定文本字段是否是密码文...
来源: Laya2.0_api 发布时间: 20190513