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

大约有 1,614 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0057 秒)

581. Panel初始化BUG [ 62%]

...;         content._style.scrollRect || (content.scrollRect = Rectangle.create());         content._style.scrollRect.setTo(rectX, rectY, width, height);         content.scrollRect = content.scrollRect;     } 附件 : --> Bug文本.zip 2021-11-08 添加评论 免费帖 --> 分享 微博 ...

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

582. 使用Laya.loader.load加载Laya.Loader.FONT位图字体文件时就会出现无限循环加载,一直到浏览器奔溃 [ 62%]

...url: ['res/bitmapFont/test.fnt'],     type: Laya.Loader.FONT }], Handler.create(this, () => {             console.log('bitmapFont loaded');                          this.onFontLoaded();         }), Handler.create(this, (progress) => {             console.log('bit...

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

583. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 62%]

...Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使用LayaA...

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

584. 动画挂点(ActionScript-3D基础(AS3)-LayaAir3D之Animator动画) [ 62%]

...t Scene3D.load("LayaScene_SceneMonkey/Conventional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); ...

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

585. 动画实例在调用含有名字参数的时候获取不到边界 [ 62%]

...is.playerUnit ){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.playerUnitLoaded)); } for(let i of this.enemyUnit){ i.loadAtlas("./character/m1.atlas",Laya.Handler.create(this,this.enemyUnitLoaded)); } } playerUnitLoaded(){ for(let i in this.playerUnit){ Laya.An...

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

586. 分享:LayaAir下Loading进度条的制作(ActionScript 3.0) [ 62%]

...var proArr:Array=; proArr.push(pro1,pro2); Laya.loader.load(proArr,Handler.create(this,onProLoaded)); } private function onProLoaded():void { // 将进度条显示到舞台 showProgress(); //开始预加载游戏资源 var ape1:Object={url:"apes/monkey0.png",type:Loader.IMAGE}; var ape2:Object={url:...

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

587. laya.maths.Matrix [ 62%]

...中的所有矩阵数据复制到指定的 Matrix 对象中。 Matrix  create():Matrix[static] 从对象池中创建一个 Matrix 对象。 Matrix  destroy():void 销毁此对象。 Matrix  getScaleX():Number 获取 X 轴缩放值。 Matrix  getScaleY():Number 获取 Y 轴缩放值。 Matrix...

来源: laya_api 发布时间: 20170929

588. 输入设备-指南针 [ 61%]

...tage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本 createDegreesText(); Gyroscope.inst...

来源: Laya_示例 发布时间: 20251218

589. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 61%]

...er.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded...

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

590. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 61%]

...ion.enableHighAccuracy = true; Laya.Geolocation.watchPosition(Laya.Handler.create(this, this.updatePosition), Laya.Handler.create(this, this.onError)); // 绑定convertToBaiduCoord作用域 this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this); } } new WatchPosition(); ``` ​ 由于本例...

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