大约有 121 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya_社区(51) laya_api(29) Laya2.0_api(27) Laya3.0_文档(4) Laya2.0_文档(3) Laya_示例(3) Laya2.0_示例(3) Laya3.0_api(1)
...onstructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { console.log("----------the event resize-------") cons...
来源: Laya_社区 发布时间: 20170720
... Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Event = Laya.Event, Accelerator = Laya.Accelerator; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...
来源: Laya2.0_示例 发布时间: 20251130
...化蛇 initSnake(); // 监视加速器状态 Accelerator.instance.on(Laya.Event.CHANGE, this, monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, animate); // 食物生产 Laya.timer.loop(3000, this, produceFood); // 游戏开始时有一个食物 produceFood(); })() function initSnak...
来源: Laya_示例 发布时间: 20251130
...是怎么回事??? 类似这样的方式 Laya.Browser.window.on(Laya.Event.VISIBILITY_CHANGE, this, this.triggerExit); 整个页面一片黑…… 2018-02-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 La...
来源: Laya_社区 发布时间: 20180228
... Classes | Index | Frames No Frames MeshFilterProperties | Methods | Events Packagelaya.d3.coreClasspublic class MeshFilterInheritanceMeshFilter GeometryFilter EventDispatcher Object MeshFilter 类用于创建网格过滤器。 Public Properties Hide Inherited Public Properties Show Inherited...
来源: laya_api 发布时间: 20170929
...,图片没变,好像没有更新. //事件回调---collisionStart Matter.Events.on(engine, 'collisionStart', function(event) { var pairs = event.pairs; // change object colours to show those ending a collision for (var i = 0; i < pairs.length; i++) { var pair = pairs[i]; pair.bodyA.render.fillS...
来源: Laya_社区 发布时间: 20171024
...ager身兼多职引起的,在Animals中不要引用Manager。应该引入event机制,当Anaimal的attack动作发生时,触发'attack' 事件,而在Manager里监听attack事件,调用自已的change函数。 Animal.tsclass Animal implements EventEmiter { public sex: number = 0; public Creat...
来源: Laya_社区 发布时间: 20190226
.../LayaProject1/release/harmony/LayaProject1/libSysCapabilities/src/main/ets/event/HandleMessageUtils.ts:2:18 Currently module for 'liblaya.so' is not verified. If you're importing napi, its verification will be enabled in later SDK version. Please make sure the corresponding .d.ts file is provided an...
来源: Laya_社区 发布时间: 20250106
...Classes | Index | Frames No Frames Component3DProperties | Methods | Events Packagelaya.d3.componentClasspublic class Component3DInheritanceComponent3D EventDispatcher ObjectImplements IUpdate, laya.resource.IDestroySubclasses Animator, AttachPoint, Collider, KeyframeAnimations, Script Compon...
来源: laya_api 发布时间: 20170929
...structor() { super(); this.stage.on(Laya.Event.FOCUS, this, this.onFocus); this.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.timer.frameLoop(1,this,this.onFrameLoop); } private onFrameLoop():void{ ...
来源: Laya_社区 发布时间: 20180724