大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0086 秒)
Laya_社区(3251) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(94) Laya3.0_文档(86) Laya2.0_api(9) laya_api(6)
...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_示例 发布时间: 20241002
...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
...制作的帧动画之后会出现截图失败的情况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
...加载.lm文件和.ani文件,有沒有實例可以看下 代碼如下: this.scene = Laya.stage.addChild(new Laya.Scene()); //加载相机 this.camera = this.scene.addChild(new Laya.Camera()); this.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load(...
来源: Laya_社区 发布时间: 20180731
...发光滤镜,并没有一直new SpineMgr.inst.loadSpine(['spine/yasuo'], this, ()=>{ this._spine = SpineMgr.inst.createSpine('spine/yasuo.sk', 0); // this._spine.showSkinByIndex(1); this._spine.play('yidonggongji', true); this.testSkePos.addChild(this._spine); //创建一个发光滤镜 var fil...
来源: Laya_社区 发布时间: 20181127
... ret; } //粒子特效初始化 private Init(file_path:string): void { if (this._isInited) { return; } this._filePath = file_path; console.log("Particle3D"); //从拿到的粒子系统克隆一个 var res = Laya.loader.getRes(file_path); var particle = res.clone(); this._particle = particle; //获...
来源: Laya3.0_文档 发布时间: 20240117
...请问我该怎么写呢? 假设有这两个定时器 Laya.timer.loop(100, this,update); Laya.timer.loop(1000,this,shoot_boss); 我希望关闭第二个定时器,该如何使用clear呢? 谢谢。 2016-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...
来源: Laya_社区 发布时间: 20160718
... } let list = new Laya.List; list.width = this.itemList.width; list.height = this.itemList.height; list.x = this.itemList.x; list.y = this.itemList.y; list.spaceY = 12; list.vScrollBarSkin = ""...
来源: Laya_社区 发布时间: 20170310
...入"); // 是否缓存初始的文本提示字符串和文本颜色. if (!this.initText) { this.initText = this.textField.text ; this.initColor = this.textField.color ; } // 如果是初始提示字符串, 就设置为空, 同时设置颜色和斜体. if (this.textField.text === this.initText) { t...
来源: Laya_社区 发布时间: 20181012
..."../../"; Laya.loader.load("res/particles/RadiusMode.part", Handler.create(this, onAssetsLoaded), null, Loader.JSON); })(); function onAssetsLoaded(settings) { sp = new Particle2D(settings); sp.emitter.start(); sp.play(); Laya.stage.addChild(sp); sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height...
来源: Laya_示例 发布时间: 20241002