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

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

1771. 这样的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

1772. 将字节数组转为图片 [ 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

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

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

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

1775. 使用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

1776. 模拟石头下落过程不明抖动 [ 45%]

...constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clientHeight, Laya.WebGL ); Laya.init(720,1280,Laya.WebGL); Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_M...

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

1777. 缓动-简单的Tween [ 45%]

... Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() {...

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

1778. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 45%]

...der = Item;   list.repeatX = 1; list.repeatY = 4;   list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2;   // 使用但隐藏滚动条 list.vScrollBarSkin = "";   list.selectEnable = true; list.selectHandler = new Handler(this, onSelect);   list.renderHa...

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

1779. Laya.loader.create中的progress回调好像不准确? [ 45%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 如何定义动画播放过某帧后的回调函数 Laya.Handler.create 回调 Laya.loader.create 不会反馈失败状态跟描述不符合 调用 Laya.MiniAdpter.downLoa...

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

1780. 微信小游戏加载资源问题 [ 45%]

...r ts = Laya.Laya.stage._canvasTransform.identity(); ts.scale((Laya.Browser.width / Laya.Render.canvas.width / Laya.Browser.pixelRatio), Laya.Browser.height / Laya.Render.canvas.height / Laya.Browser.pixelRatio); } static wxinputFocus(e) { var _inputTarget = Laya.Input['inputElement'].target; if (_in...

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