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

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

601. new Laya.Templet() 时,说这不是一个constructor [ 92%]

....0的“技术文档 → 动画进阶 → 示例代码”是这样写的!this.templet = new Laya.Templet();  2018-12-12 0 1 分享 微博 QZONE 微信 180*****237 赞同来自: 碰到同样问题了,我用的是LayaAir2.0。也是说: TypeError: Laya.Templet is not a constructor   能有详...

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

602. shader 问题[关闭] [ 92%]

...e2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.WebGLContext.FLOAT, false, _vlen, 4 * Laya.CONST3D2D....

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

603. 还是自定义事件问题。 [ 92%]

还是自定义事件问题。 A实例 a.on("vj_move", this, this.onChange,this._data);  监听    在A类  抛事件 this.event("vj_move","abc");   断点监听处  this._data没数据   是不是写法有问题???   2017-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

604. sound manager在MOUSE_OVER事件中无法播放 [ 92%]

...       Laya.stage.bgColor = "#232628";              this.setup();         }          private setup(): void {             var gap: number = 10;              //创建一个Sprite充当音效播放按钮             var...

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

605. [LayaAir2]某些手机播放视频偶现崩溃,日志显示缓冲区被丢弃 [ 92%]

...偶现崩溃,日志显示缓冲区被丢弃 [SurfaceTexture-0-21301-0](this:0x74cf4b3800,id:0,api:3,p:559,c:21301) queueBuffer: slot 10 is dropped, handle=0x750dc86a80 [Debug][Video]IsPaused: true [SurfaceTexture-0-21301-0](this:0x74cf4b3800,id:0,api:3,p:559,c:21301) queueBuffer: slot 9 is dropped...

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

606. HIERARCHY_LOADED函数不回调 [ 92%]

HIERARCHY_LOADED函数不回调 this.sceneP = Laya.stage.addChild(Laya.Scene.load(name)) as Laya.Sprite3D; //this.sceneP.transform.setTranslate(500,500); this.sceneP.once(Event.HIERARCHY_LOADED, this,function():void{ console.error("改变大小"); this.sceneP.transform.localScale = new Vector3(3, 3...

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

607. UI-Dialog [ 92%]

...).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALO...

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

608. 文本-字符限制 [ 92%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } createTexts() { this.createLabel("只允许输入数字:").pos(50, 20); let input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入字母:").pos(50, 1...

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

609. 多重遮罩显示异常 [ 91%]

...port default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this.panel.vScrollBarSkin = ...

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

610. 使用drawToCanvas截图多次之后,再也无法再本次程序中截图显示。没有任何报错 [ 91%]

...制作的帧动画之后会出现截图失败的情况private takePhoto(){ this._htmlC = this.gridBox.drawToCanvas(this.gridBox.width,this.gridBox.height,0,0); //获取截屏区域的texture this._tex = new Laya.Texture(this._htmlC); this._photo=new Laya.Sprite(); //将截屏的texture进行draw绘...

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