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

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

11. getimagedata直接调用无法获取有效像素问题 [ 66%]

...key3.png");           // 方法2:使用drawTexture         Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function()         {             var t = Laya.loader.getRes("../../res/apes/monkey2.png");             var ape = new Sprite();             a...

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

12. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...载Spine动画数据资源(json文件),注意一定要设置为Laya.Loader.SPINE类型,否则不会把json认为是SPINE资源 Laya.loader.load("girl2/mix-and-match-pro.json", Laya.Loader.SPINE).then(() => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addCompon...

来源: Laya3.0_文档 发布时间: 20251128

13. 诗悦网络高薪诚聘H5开发(可年前开聊,年后入职哇) [ 61%]

...发的3d跑酷 微信关系链开发,如果在开放域那边使用Laya.loader.load加载就会出错 1.7.14beta JS开发没有代码提示 借助AMD来解决HTML5游戏开发中的痛点 招聘:H5游戏开发 坐标:深圳南山 问题状态 最新活动: 2019-04-03 14:55 浏览: 1525 关注:...

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

14. 图片使用pivotX参数后,再对图片添加遮罩会出现效果不对。 [ 60%]

...showall";         Laya.stage.bgColor = "#232628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addCh...

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

15. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 47%]

... "resources/res/ui/input (3).png", "resources/res/ui/input (4).png"]; Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: Laya.TextInput = this.createInput(this.skins[i]); input...

来源: Laya3.0_文档 发布时间: 20251010

16. 时间轴动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 45%]

... ```javascript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas", Laya.Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```javascript //创建一个Animation实例 var tl = new Laya.Animation(); //加载动画文件 ...

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

17. 时间轴动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 44%]

... ```typescript //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```typescript //创建一个Animation实例 var tl:Laya.Animation = new Laya.Animation(); //...

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

18. 时间轴动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 44%]

...图集。 ```java //加载图集成功后,执行onLoad回调方法 Laya.loader.load("res/atlas/ui.atlas", Handler.create(this, onLoaded)); ``` 第二步:创建Animation实例,加载动画文件 ```java //创建一个Animation实例 var tl:Animation = new Animation(); //加载动画文件 tl.lo...

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

19. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

..., offset || Point.EMPTY, color)); else return null; } 代码示例: Laya.loader.load("resources/layaAir.png").then((res: Laya.Texture) => { let sp = new Laya.Sprite(); // 绘制填充纹理 sp.graphics.fillTexture(res, 0, 0, 500, 500, "repeat"); this.owner.addChild(sp); }); 运行效果: (...

来源: Laya3.0_文档 发布时间: 20251010

20. LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) [ 38%]

...tion.Laya3D._getSprite3DHierarchyInnerUrls (libs/laya.d3.js:1837)     at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)     at EventHandler.__proto.runWith (libs/laya.core.js:1628)     at Loader.__proto.event (libs/laya.core.js:1384)     at Loader.__proto.complete (libs/laya.core....

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