大约有 1,155 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0048 秒)
Laya_社区(864) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
...可以加载2D,3D资源 Laya.loader.load(resArr, null, Laya.Handler.create(this, this.onLoading, null, false)).then(() => { // 加载完成后,处理逻辑 this.progress.value = 0.98; console.log("加载结束", this.progress.value); Laya.Scene.open("scenes/Index.ls"); //不...
来源: Laya_社区 发布时间: 20230713
...','apes/monkey1.png','apes/monkey2.png','apes/monkey3.png'],Handler.create(this,onLoaded)); } private function onLoaded():void { //获取纹理 var texture1:Texture=Loader.getRes('apes/monkey0.png') as Texture; var texture2:Texture=Loader.getRes('apes/monkey1.png') as Texture; var texture3:Texture=L...
来源: Laya_社区 发布时间: 20170519
...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, updatePosition), Laya.Handler.create(this, onError)); // 绑定作用域 convertToBaiduCoord = convertToBaiduCoord.bind(this); ``` 由于本例不需要使用LayaAir的显示元素,因此舞台尺寸设置为1。...
来源: Laya2.0_文档 发布时间: 20210715
...vate Board = new GiftBoard(); let board = Laya.Pool.getItemByClass("board",this.Board); 报下面这个错 cls is not a constructor 2017-12-11 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...
来源: Laya_社区 发布时间: 20171211
...; Laya.stage.addChild(info); Gyroscope.instance.on(Event.CHANGE, this, onDeviceorientation); } private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void { info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.f...
来源: Laya2.0_文档 发布时间: 20210714
...)(); function setup() { initMatter(); initWorld(); Laya.stage.on("resize", this, onResize); } function initMatter() { var gameWorld = new Sprite(); Laya.stage.addChild(gameWorld); // 初始化物理引擎 engine = Matter.Engine.create( { enableSleeping: true }); Matter.Engine.run(engine); var render...
来源: Laya_示例 发布时间: 20250225
...52) at EventHandler.runWith (libs/laya.core.js:848) aya.core.js中this._vshader与this._pshader参数为null 附件 : --> 3d.zip 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 从小就是T 赞...
来源: Laya_社区 发布时间: 20190808
...ets.push(QUAN); assets.push(RUNBIN); assets.push(YUAN); mc.on(Event.LOADED,this,load); } public function load(e:* = null):void{ if(assets.length > 0){ mc.load(assets.shift()); }else{ onAssetsLoaded(); } } private function onAssetsLoaded(e:*=null):void { this.event(BEFORLOADERFINISH); } } } 2016-1...
来源: Laya_社区 发布时间: 20161213
...ut)调用select()方法没有效果。 B.text = "123456"; A.on(Event.CLICK,this,OnClick); private function OnClick():void { B.select(); } 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...
来源: Laya_社区 发布时间: 20170525
怎么对动画进行毎帧侦听? ani.on(Laya.Event.COMPLETE, this, _OnComplete); function _OnComplete() { var bounds = ani.getGraphicBounds(); console.log(bounds.width); console.log(bounds.height); } 这样的话获取动画宽高 还是只会取到第一帧宽高 并没有办...
来源: Laya_社区 发布时间: 20170704