• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,155 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0048 秒)

841. 报无法找到资源,未升级ide之前不报错 [ 58%]

...可以加载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

842. 分享:Graphics下cmds命令流的使用! [ 58%]

...','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

843. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 58%]

...bleHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, updatePosition), Laya.Handler.create(this, onError)); // 绑定作用域 convertToBaiduCoord = convertToBaiduCoord.bind(this); ``` ​ 由于本例不需要使用LayaAir的显示元素,因此舞台尺寸设置为1。...

来源: Laya2.0_文档 发布时间: 20210715

844. 对象池使用报错 [ 58%]

...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

845. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 58%]

...;  Laya.stage.addChild(info);     Gyroscope.instance.on(Event.CHANGE, thisonDeviceorientation); }   private function onDeviceorientation(absolute:Boolean, rotationInfo:RotationInfo):void  {  info.text =   "alpha:" + Math.floor(rotationInfo.alpha) + '\n' +  "beta :" + Math.f...

来源: Laya2.0_文档 发布时间: 20210714

846. 物理引擎-Slingshot [ 58%]

...)(); 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

847. LayaAir IDE 2.2.0beta2版本2d粒子不能用了,LayaAir IDE 2.1.0版本正常 [ 58%]

...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

848. swf预加载问题 [ 58%]

...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

849. TextInput的select()方法问题 [ 58%]

...ut)调用select()方法没有效果。 B.text = "123456"; A.on(Event.CLICK,this,OnClick);   private function OnClick():void {          B.select(); } 2017-05-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复...

来源: Laya_社区 发布时间: 20170525

850. 怎么对动画进行毎帧侦听? [ 58%]

怎么对动画进行毎帧侦听? ani.on(Laya.Event.COMPLETE, this, _OnComplete);   function _OnComplete() {   var bounds = ani.getGraphicBounds();   console.log(bounds.width);   console.log(bounds.height); } 这样的话获取动画宽高  还是只会取到第一帧宽高  并没有办...

来源: Laya_社区 发布时间: 20170704