大约有 3,084 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0085 秒)
Laya_社区(2354) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
...包名与分包路径的字段 ```json { ... "subpackages": [ { "name": "stage1", "root": "stage1/" // 可以指定一个目录,目录根目录下的 game.js 会作为入口文件,目录下所有资源将会统一打包 }, { "name": "stage2", "root": "stage2.js" // 也可以指定一个 JS 文...
来源: Laya2.0_文档 发布时间: 20210715
...ructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; this.img = new Laya.Image(); this.img.pos(200, 200) //获取图片资源,绘制到画布 this.img.skin = this.Res //添加到舞台 Laya.stage...
来源: Laya_社区 发布时间: 20171211
...资源不支持,转换H5的时候需要还原成原来的资源, ATF是Stage3D内置支持的纹理压缩格式,并非一个通用的纹理压缩格式,建议转换回png或jpg的纹理格式。 2.Embed资源不支持,需要使用AssetManager来管理资源,或者使用Loader, URLLoader等...
来源: Laya_社区 发布时间: 20151208
....app/Contents/Resources/app/out/vs/layaEditor/h5/laya.js:8965:16) at Stage.__proto.render (file:///Applications/LayaAirIDE.app/Contents/Resources/app/out/vs/layaEditor/h5/laya.js:59716:16) at Stage.__proto.render (file:///Applications/LayaAirIDE.app/Contents/Resources/app/out/vs/layaEdit...
来源: Laya_社区 发布时间: 20191113
...s); this.img = []; this.init(); } Class.prototype.init = function() { Laya.stage.addChild(this); this.bg(); Laya.timer.frameLoop(1, this, this.loop); }; Class.prototype.bg = function() { for (var i = 0; i < 2; i++) { this.img[i] = new Laya.Image('background.png'); this.addChild(this.img[i]); } th...
来源: Laya_社区 发布时间: 20170619
...下:private function showFoods():void{ foodSprite = new Sprite(); Laya.stage.addChild(foodSprite); //初始化当前菜品下标 this.index = 0; //数据数组 foodArray = ; foodArray.push(new Food("菜品1", "1", 0)); foodArray.push(new Food("菜品2", "2", 1)); foodArray.push(new Food("菜品3",...
来源: Laya_社区 发布时间: 20180407
...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scen...
来源: Laya3.0_api 发布时间: 20231102
...本的显示起点位置X,Y txt.pos(60, 100); //设置舞台背景色 Laya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); } } } 2. 修改.as3proj文件相应标签如下 <compileTargets> <compile path="src\HelloWorld.as" /> </compileTargets>...
来源: Laya_社区 发布时间: 20180914
...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hide hideFlags hitArea is3D isVertical lastOffset left mask max min mouseEnabled mouseWheelEnable mouseX mouseY numChildren parent p...
来源: Laya3.0_api 发布时间: 20231115
...过2048导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");
来源: Laya_社区 发布时间: 20180713