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

大约有 3,084 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0085 秒)

1741. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 64%]

...包名与分包路径的字段 ```json { ... "subpackages": [ { "name": "stage1", "root": "stage1/" // 可以指定一个目录,目录根目录下的 game.js 会作为入口文件,目录下所有资源将会统一打包 }, { "name": "stage2", "root": "stage2.js" // 也可以指定一个 JS 文...

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

1742. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 64%]

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

1743. Starling项目需要注意哪些问题? [ 64%]

...资源不支持,转换H5的时候需要还原成原来的资源, ATF是Stage3D内置支持的纹理压缩格式,并非一个通用的纹理压缩格式,建议转换回png或jpg的纹理格式。 2.Embed资源不支持,需要使用AssetManager来管理资源,或者使用Loader, URLLoader等...

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

1744. mac 开放域 发布失败 [ 64%]

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

1745. js继承模式 [ 64%]

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

1746. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 64%]

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

1747. laya.ui.AdvImage_API3.0 [ 64%]

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

1748. mac平台1.7.20.2beta版本下compileTargets设置不生效 [ 64%]

...本的显示起点位置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

1749. laya.ui.ScrollBar_API3.0 [ 64%]

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

1750. 游戏引导 原来使用 blendMode = "destination-out"; 现在怎么用? [ 64%]

...过2048导致引发上面的问题 this.mask.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000000");

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