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

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

1121. 请教制作android联网版带有cache的apk包流程 [ 51%]

...何制作的? 请教下微信小游戏的内存和数据缓存? Laya.Loader.getRes请教 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 请教一下,页面元素在不同的设备上,怎么让它居中显示呢或者自适应宽度? 请...

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

1122. 图片遮罩大小跟设置不一致 [ 51%]

...adImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("https://s2.d2scdn.com/2017/12/ ... ot%3B, Handler.create(this, function() { var t = Laya.loader.getRes("https://s2.d2scdn.com/2017/12/ ... 6quot;); var ape = new Sprite(); ape.scaleX = 0.5 ape.scaleY = 1 ape.grap...

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

1123. 图片通过drawTexture平铺出现缝隙 [ 51%]

...      this.addChild(this.darwSprite);         var t: Texture = Laya.loader.getRes("load/0.png");         this.darwSprite.graphics.drawTexture(t,0,0);         this.darwSprite.graphics.drawTexture(t,176,0);         this.darwSprite.graphics.drawTexture(t,176*2,0);   采用这方式...

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

1124. 资源加载问题游戏上的小图片会先加载出来背景等大图片会后加载出来而且很明显请教如何处理 [ 51%]

...图片 执行代码说加载不出来资源 这个是怎么回事? Laya.Loader.getRes请教 移植了一个游戏 代码重新 写的 关于发布oppo、vivo快游戏,无法生成Rpk问题 问题状态 最新活动: 2018-05-02 16:57 浏览: 809 关注: 2 人 b456410 • 2018-05-07 08:46 你说...

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

1125. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 51%]

...var resourceArray = [ { url:"res/atlas/comp.atlas" , type : Laya.Loader.ATLAS} ]; Laya.loader.load(resourceArray,Laya.Handler.create(null,loadResourceComplete)); } function loadResourceComplete() { Laya.stage.addChild(new LoginView()); } })(); feiguangfu • 2018-03-16 09:55 这个是主...

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

1126. 请问:Ts下如何实现打开照相机和系统图库的方法?IOS和Android [ 51%]

....id = "photo";         body.appendChild(input);         Laya.loader.load("comp/button.png");         let button = new UIButton("comp/button.png","点我");         button.labelSize = 30;         button.size(300,100);         button.centerX = 0;       ...

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

1127. 动效模板(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 51%]

...认应用程序。编写代码如下: ```java package { import laya.net.Loader; import laya.utils.Handler; import ui.EffectAnimationDemoUI; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" //加载图集资...

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

1128. 加载sk文件时,报Uncaught getUint16 error - Out of bounds [ 51%]

....loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init));

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

1129. layanative安卓端需要怎么添加ttf字体,需要增加两种字体? [ 51%]

...; import laya.utils.Handler; /** * ... * @author ww */ public class TestTTFLoader  {   public function TestTTFLoader()  { Laya.init(1000, 900);   Laya.loader.load("res/remember.ttf",new Handler(this,test)); }   private function test():void { var text:Text; text = new Text(); text.fontSize = 30;...

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

1130. 如何获取animation的node节点? [ 51%]

... // 创建一个用于存放位图数组的临时精灵 let texture = Laya.loader.getRes(options.srcPath+options.srcName+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniProps.mc[options....

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