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

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

1761. 两个问题都关于LayaAir的ios真机 [ 46%]

... photo.loadImage(AppConfig.httpPhotoUrl+UserData.username,0,0,gui.imgPhoto.width,gui.imgPhoto.height ); gui.imgPhoto.addChild(photo); gui.imgPhoto.mask=mask;载入的头像在浏览器ok,在真机构建的app上就有问题,真机上如果没mask,头像正常,如果加了mask,就不显示...

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

1762. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 46%]

...00"); s.pos(0,0); console.log("=mask container=>>", s.width, s.height)//打印出是0,0 this.scrollContainer.mask = s;//scrollContainer是一个有宽高的Box,为什么打印出的s的宽高是0,0,只要设置了mask,chrorme就会警告cache bitmap size larger than 2048...

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

1763. LayaAir 寻路库,寻路路径错误 [ 46%]

...----------------------------------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar.zip 2016-12-21...

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

1764. JS进度条加载问题 [ 46%]

...w Laya.Sprite(); progressBar.loadImage("comp/BG1.jpg",50,300); progressBar.width=300; progressBar.sizeGrid="5,5,5,5"; progressBar.changeHandler=new Handler(this,onChange); //当progressBar的value值改变时触发 Laya.stage.addChild(progressBar); onchange(); } function onChange(value) { trace("进...

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

1765. laya.d3.resource.DataTexture2D [ 46%]

...ture  src : String[read-only] 获取文件路径全名。 DataTexture2D width : int[read-only] 获取宽度。 BaseTexturePublic Methods  MethodDefined By  DataTexture2D() 创建一个 Texture2D 实例。 DataTexture2D  create(data:ArrayBuffer, w:int, h:int, magfilter:int, minfilter:int, mip...

来源: laya_api 发布时间: 20170929

1766. 这样的panel请问如何实现比较好? [ 46%]

...Laya.init(500, 1000, WebGL); Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; var resPath = ['res/atlas/comp.atlas']; Laya.loader.load(resPath, new Laya.Handler(this, function () { var textUi = new TextUI(); Laya.stage.addChild(textUi); }), null, Laya.Loader.ATLAS);  } } new GameMain();   Test...

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

1767. 将字节数组转为图片 [ 46%]

...le%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410             trace(sp.width);//0             /**              * 其他调试信息打印:              * [warn]Retry to load: blob:file%3A///1c4effc4-4022-4ab5-8feb-e39ff76b7410                [error]Failed t...

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

1768. 2.0 Beta3版本中,runtime脚本的的问题 [ 46%]

...me" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static scen...

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

1769. Dialog 第一次打开总是出现在窗口右下角,这是为啥,再打开就正常剧中了? [ 45%]

...:"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width":1624,"sceneColor":"#000000","runtime":"script/view/dialogs/SettingDialog.js","height":750}, "nodeParent":-1, "maxID":4, "label":"Dialog", "isOpen":true, "isDirectory":true, "isAniNode":true, "hasChild":true, "compId":2...

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

1770. 使用webgl之后toDataUrl返回黑色的图像 [ 45%]

...rite ; public function LayaAirDemo() { //初始化引擎 Laya.init(Browser.width, Browser.height,WebGL); Stat.show(); Laya.stage.bgColor = "#ffcccc"; Laya.stage.on(Event.CLICK,this,onClick); sp= new Sprite(); sp.name='base'; sp.loadImage("logo.png"); Laya.stage.addChild(sp); } private function onCli...

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