大约有 1,614 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0057 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(42) Laya2.0_api(13) laya_api(12)
...; 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
...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
...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
...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
...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
...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
...中的所有矩阵数据复制到指定的 Matrix 对象中。 Matrix create():Matrix[static] 从对象池中创建一个 Matrix 对象。 Matrix destroy():void 销毁此对象。 Matrix getScaleX():Number 获取 X 轴缩放值。 Matrix getScaleY():Number 获取 Y 轴缩放值。 Matrix...
来源: laya_api 发布时间: 20170929
...tage.alignV = Stage.ALIGN_MIDDLE; Laya.loader.load(compassImgPath, Handler.create(this, init)); })(); function init() { // 创建罗盘 createCompass(); // 创建方位指示器 createDirectionIndicator(); // 画出其他UI drawUI(); // 创建显示角度的文本 createDegreesText(); Gyroscope.inst...
来源: Laya_示例 发布时间: 20251218
...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
...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