大约有 2,033 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
.../scene/LayaScene_AnimationEvent/Conventional/layaScene.ls", Handler.create(this, function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; //获取cube对象 var cube:Sprite3D = scene.getChildByName("Cube"); //添加组件(脚本) var _script:SceneScript = cube.addComponent(SceneScript);...
来源: Laya2.0_文档 发布时间: 20210715
...()没有能够清除这个节点的纹理 (this.owner as Laya.Sprite).graphics.clear(); var t: Laya.Texture = Laya.loader.getRes("puzzlePic/pi-" +this.levelNum +"-"+this.owner.name.slice(4,1)+ "-2.png"); ...
来源: Laya_社区 发布时间: 20201012
Tiled 中GridSprite.hide无效 var grid:Laya.GridSprite = this.obstacleLayer.getObjectByName("grid0"); frid.hide();//无效 this.obstacleLayer.hideGridSprite(grid)//也无效 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20181122
...{ * function Item(){ * Item.__super.call(this);//初始化父类 * this.graphics.drawRect(0, 0, 100, 20, "#ff0000"); * var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。 * lab...
来源: Laya_社区 发布时间: 20180426
...断是进不去的,但我打印出来是满足条件的,必现) if(this._view && this._tableInfo.hasOwnProperty('players')) { let data = this._tableInfo; alert(param.players[0].uid +' '+App.uid +' '...
来源: Laya_社区 发布时间: 20180109
... • 2018-12-21 12:10 然后你的addchild可以添加在dialog页面,既this.addchild(),不一定要在stage上。因为dialog是最上层页面场景,可能会把你添加在stage上的遮住。 X. • 2018-12-21 14:37 @内涵tv何吓吓:2.0的,我换了一种方法写就可以i了
来源: Laya_社区 发布时间: 20181221
...,预加载造成了GPUMemory过高。 var tPath=this.mergePath(this._resPath,tTileSet.image); this._loader.load(tPath,/*laya.net.Loader.IMAGE*/"image",false); 看了文件,会把json的图像资源全部加载出来, 如果我只想load下载到...
来源: Laya_社区 发布时间: 20191027
...自: 代码如下,可是这个页面无法显示 ,且一直报错,"This page contains the following errors:error on line 1 at column 7: internal error: detected an error in element contentBelow is a rendering of the page up to the first error." (function() { var Stage = Laya.Stage; var Text ...
来源: Laya_社区 发布时间: 20171113
...要重写_remove __proto._remove=function(index){ this.length--; if (index!==this.length){ var end=this.elements[this.length]; this.elements[index]=end; end._indexInCastShadowList=index; ...
来源: Laya_社区 发布时间: 20181214
...赋值。 > 动态修改摄影机视口 ```typescript Laya.timer.once(3000,this,function ():void { //获取第一个摄影的视口 var viewport1:Viewport = camera1.normalizedViewport; //修改参数 viewport1.width = 0.2; //重新赋值是视口 camera1.normalizedViewport = viewport1; var viewport2...
来源: Laya2.0_文档 发布时间: 20210715