大约有 517 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0038 秒)
...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { this.listenKeyboard(); this.createLogger(); Laya.timer.frameLoop(1, this, this.keyboardInspector); } listenKeyboard() { const Event = Laya.Event; // 用Set实现更好一些 keyDownList = []; // 添...
来源: Laya2.0_示例 发布时间: 20241117
...ng", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.AL...
来源: Laya2.0_示例 发布时间: 20241117
...径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCount].x,path[nextPathInde...
来源: Laya2.0_文档 发布时间: 20210714
....bgColor = "#232628"; Laya.loader.load("../../res/bg2.png", Handler.create(this, setup)); })(); function setup() { var bg = new Sprite(); bg.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg); bg2 = new Sprite(); bg2.loadImage("../../res/bg2.png"); Laya.stage.addChild(bg2); bg2.scale(3, 3); //...
来源: Laya_示例 发布时间: 20241117
... Laya.stage.bgColor = "#3da8bb"; createCanvases(); Laya.timer.frameLoop(1, this, animate); Laya.stage.on('mousedown', this, onMouseDown); Laya.stage.on('mousemove', this, onMouseMove); Laya.stage.on('mouseup', this, onMouseUp); })(); function createCanvases() { var graphicsCanvas = new Sprite(); Lay...
来源: Laya_示例 发布时间: 20241117
...nect to runtime process, timeout after 10000 ms - (reason: Can't attach to this target that may have Chrome DevTools attached - file:///D:/work/SlotProject2/bin/index.html). 2017-04-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20170428
... if (touches && touches.length == 2) { this.preRadian = Math.atan2( touches[0].stageY - touches[1].stageY, touches[0].stageX - touches[1].stageX); Laya.stage.on(Event.MOUSE_MOVE, th...
来源: Laya_社区 发布时间: 20171201
...../../"; Laya.loader.load("res/particles/GravityMode.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_示例 发布时间: 20241117
...载角色动画资源 Laya.loader.create("monkey/monkey.ls",Handler.create(this,onSceneOK)); } private function onSceneOK():void { //添加3D场景 var scene:Scene3D = Laya.loader.getRes("monkey/monkey.ls"); Laya.stage.addChild(scene); //从场景中获取摄像机 var camera:Camera = scene.getChild...
来源: Laya2.0_文档 发布时间: 20210715
load 粒子的时候永远出错 永远报这个错误:Warning!,this class[MiniAdpter] already exist: Object {} [warn]Retry to load: res/rotate.part [error]Failed to load: res/rotate.part 我的代码: Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya...
来源: Laya_社区 发布时间: 20180211