大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0084 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...(); })(); function setup() { createSprite(); Laya.stage.on(Event.MOUSE_UP, this, onMouseUp); Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp); } function createSprite() { sp = new Sprite(); var w = 200, h = 300; sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); sp.size(w, h); sp.pivot(w / 2, h / 2); sp.po...
来源: Laya_示例 发布时间: 20250223
... //设置适配模式 Laya.stage.scaleMode = this.modes; //设置舞台背景色 Laya.stage.bgColor = "#ffff99"; //实例一个背景 var bg = new Image(); bg.skin = "res/img/l...
来源: Laya2.0_文档 发布时间: 20200307
...顿,而且会显示倒带 private onLoop(){ if(this.WheelList.visible==true) { this.WheelList.set_visible(false); this.WheelList2.set_visible(true); t...
来源: Laya_社区 发布时间: 20201025
...s); if (interval != void 0) { this.interval = interval; } this.on(Laya.Event.COMPLETE, this, () => { this.destroy(); }); this.frameIndex = 0; ...
来源: Laya_社区 发布时间: 20201211
...aya.Sprite; private scene: GameScence; private uiList:any; constructor() { this.mainContent = new Laya.Sprite(); this.uiList = ; } }mainContent 为默认添加到的层级, GameScence 为UI管理器默认场景 uiList放所有加载进来的场景 第一步实现 打开界面 openWindow public ope...
来源: Laya_社区 发布时间: 20190222
...e.bgColor = "#232628"; //这里是我注释掉的代码 //Laya.loader.load(this.ApePath, Handler.create(this, this.setup)); this.setup(); } private setup(): void { this.createApe(); this.showDragRegion(); } private createApe(): void { this.ape = new Sprite(); //this.ape.loadImage(this.ApePath); Laya...
来源: Laya_社区 发布时间: 20171106
...: 使用list做图片选择栏,代码如下: onClickChooseIcon() { this.imgList.visible = true; this.imgListBg.visible = true; this.reqImage = this.iconImg; this.imgList.vScrollBarSkin = ''; this.imgList.selectEnable = true; this.imgList.array = listArr; this.imgList.renderHandler = new Laya.H...
来源: Laya_社区 发布时间: 20190318
...public static GetInstance(): CommandBuffer_Outline{ if(this.instance == null) this.instance = new CommandBuffer_Outline(); return this.instance; } public init(): void { //使用之前必须先初始化 i...
来源: Laya_社区 发布时间: 20210203
this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray); /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...
来源: Laya_社区 发布时间: 20190523
...QZONE 微信 l13273866189 赞同来自: _proto_.moveDownBall = function(){ this.ball.x -= this.vx; this.ball.y += this.vy; console.log("111111"); this.vy *= 0.99; this.vy += 0.25; console.log("222222"); if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -th...
来源: Laya_社区 发布时间: 20171107