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

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

111. Laya构建App后AndroidStudio中用真机调试模式下运行,App打开了,但是不能打开游戏的问题。 [ 56%]

....png 06-20 19:10:19.406 5371-5448/com.ReleaseTest.Four W/LayaBox: download image file error! file:////data/data/com.ReleaseTest.Four//LayaCache//localstorage/logo/logo.png 06-20 19:10:19.941 5371-5400/com.ReleaseTest.Four E/MALI: gles_state_set_error_internal:56: GLES ctx: 0xdfeb4008, error code:0x5...

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

112. LayaAir下TTF字体的使用方式? [ 56%]

...age { import laya.display.Sprite; import laya.display.Text; import laya.ui.Image; import laya.webgl.WebGL; public class TTFTest { public function TTFTest() { Laya.init(550,400); var sp:Image=new Image(); sp.loadImage("2.png"); Laya.stage.addChild(sp); var text:Text=new Text(); text.fontSize=40; text...

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

113. 发布之后报错,跨域问题 [ 56%]

...r protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/classic_numbers_8.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 2018-0...

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

114. 关于HTMLCanvas 截图功能 [ 56%]

...ode = "vertical"; Laya.Stat.show(); var icon = new Laya.Sprite(); icon.loadImage('img/test.png'); Laya.stage.addChild(icon); document.body.addEventListener("click",function(){ var kk = icon.drawToCanvas(431, 428).getContext('2d').canvas; var img = new Image(); img.src = kk.toDataURL(); document.body...

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

115. 2D图片在3D场景中定位问题 [ 55%]

...,摸索了一下,可以实现了 2dname = Laya.stage.addChild(new Laya.Image("res/layabox.png")); Laya.timer.frameLoop(1, this, functionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dname.pos(_outPos.x / ...

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

116. 添加fairygui使用fairygui.UIPackage.addPackage ( "res/Bag" )后可以正常跑,发布到微信小游戏出错 [ 55%]

...                { url: "res/Bag@atlas0.png", type: Loader.IMAGE },                     { url: "res/Bag.fui", type: Loader.BUFFER }                 ],                 Handler.create(this, onLoaded)             );     ...

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

117. 请问laya有没有类似翻页容器(pageView)的组件? [ 55%]

...ex: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.l...

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

118. native 如何下载图片并且画出来,微信头像就是要下载然后渲染 [ 55%]

...片不能按轴心旋转 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 laya怎么跨域加载图片 路径是对的,但老是,调试控制台提示:错误,图片是IDE自带...

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

119. drawTexture 画出来的数据会有以前的数据 [ 54%]

...xture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640; img.y = 320; iconSpr = new Sprite(); iconSpr.width = 1280; iconSpr.height = 640; iconSpr.addChild(img); btn.on(Event.CLICK,this,runGame1)...

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

120. 2.0下资源加载和销毁内存问题 [ 54%]

...640*1038,900K    先创建一个img实例 class bitmapimg extends Laya.Image //2.0版本 这里区别为export default class bitmap extends Laya.Image { private szurl:string="" constructor(url:string){ super() this.onUrlChangeHandler(url); } protected onUrlChangeHandler(url:string):void     ...

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