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

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

31. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 65%]

Laya.loader.load(xx) 当地址""的时候,会报错。 laya 引擎是2.5的      Laya.loader.load(cg_url,Laya.Handler.create(this,()=>{             let tur:Laya.Texture = Laya.loader.getRes(cg_url);             if(tur)img_cg.graphics.drawImage(tur)        ...

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

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

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

33. HTMLDivElement的innerHTML格式要求太严格了! [ 62%]

...:IDE 无插件 自动格式化 AS3 代码 JS代码格式自动整理 请问Loader.load支持支持swf格式的预加载吗? 天空盒 cubemap ltc 格式? layabox能用上webp图片格式么? 问题状态 最新活动: 2017-11-01 14:45 浏览: 1089 关注: 2 人

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

34. 打CPK包在手机上运行会白屏,手机测试型号VIVO1419L。 [ 62%]

...ler-arm64) (code 199992) 10-13 17:31:15.861 6514-6514/com.vivo.vs I/LibraryLoader: Loading: webviewchromium 10-13 17:31:15.871 6514-6514/com.vivo.vs I/LibraryLoader: Time to load native libraries: 3 ms (timestamps 6259-6262) 10-13 17:31:15.871 6514-6514/com.vivo.vs I/LibraryLoader: Expected native l...

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

35. LayaNative端使用.ttf字体 [ 62%]

...的二进制数据)package { import laya.display.Text; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BU...

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

36. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...件均已创建完毕,此方法只执行一次 */ onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(e: any = null): void { let ta: Laya.TextArea = new Laya.TextArea(""); ta.skin = this.skin; ta.font = "Arial"; ta.fontSize = 18; ta.bol...

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

37. 微信小游戏手动缓存管理,atlas依然不能从缓存读取 [ 55%]

...以在Laya.MiniAdpter.getFileList()查找到对应缓存   但使用Laya.loader.load预加载图片与atlas时,图片可以正常从usr/layaairGame/中读取 atlas文件依旧从远程读取   如何使atlas从本地路径读取? (虽然atlas文件尺寸不大,但这样不能离线运行...

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

38. 使用laya官方示例代码制作微信小游戏无法显示 [ 55%]

...nLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); }   上图为在layaIDE中的显示效果。   不知道具体是什么原因,希望...

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

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

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

40. UI-RefreshList [ 52%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load("res/ui/refreshList/ani/refresh.png", Handler.create(this, function(){ this.initView(); })); } initView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this....

来源: Laya2.0_示例 发布时间: 20251130