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

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

31. 分享:Panel下动态修改子容器宽高并刷新显示! [ 88%]

...yaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height); //ui组件,除了image和clip外,其他皮肤均需要预加载资源,此处添加button和panel垂直滚动条的皮肤使用 Laya.loader.load(['button-4.png','ui/vscroll.png','ui/vscroll$bar.pn...

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

32. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 86%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 2017-01-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 zhpr613 赞同来自: cuix...

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

33. 在 tiledmap 插入一个精灵在上面 [ 85%]

...this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.Handler.create(this,this.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByIndex(1);...

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

34. [LayaAir3]3.3版本绘制矢量图有BUG [ 84%]

...         const sp = new Laya.Sprite();         sp.size(Laya.stage.width, Laya.stage.height);         sp.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, '0xff0000');         Laya.stage.addChild(sp); 附件 : --> 2025-07-31 添加评论 免费帖 --> 分享 微博 QZONE ...

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

35. 新手引导在ios浏览器表现异常 [ 83%]

...{     export class Sprite_Guide      {         private width = 750;         private height = 1334;         constructor()          {             Laya3D.init(this.width, this.height);             Laya.stage.setScreenSize(this.w...

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

36. laya.display.cmd.DrawEllipseCmd_API3.0 [ 83%]

...d Hierarchy DrawEllipseCmd Index Properties fillColor height lineColor lineWidth percent width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawEllipseCmd.ts:27 填充颜色,或者填充绘图的渐变对象。 height height: number Defined ...

来源: Laya3.0_api 发布时间: 20231115

37. laya.display.cmd.DrawRectCmd_API3.0 [ 83%]

...形 Hierarchy DrawRectCmd Index Properties fillColor height lineColor lineWidth percent width x y ID Methods getBoundPoints recover Properties fillColor fillColor: any Defined in laya/display/cmd/DrawRectCmd.ts:31 填充颜色,或者填充绘图的渐变对象。 height height: number Defined in l...

来源: Laya3.0_api 发布时间: 20231115

38. laya.display.cmd.FillTextureCmd_API3.0 [ 83%]

...y FillTextureCmd Index Properties color height offset percent texture type width x y ID Methods getBoundPoints recover Properties color color: number = 4294967295 Defined in laya/display/cmd/FillTextureCmd.ts:50 (可选)绘图颜色 height height: number Defined in laya/display/cmd/FillTextureCm...

来源: Laya3.0_api 发布时间: 20231115

39. 微信小游戏截屏分享 [ 82%]

...回复 坚果 赞同来自: 183*****291 、₩ var htmlC = sp.drawToCanvas(width, height, 0, 0); var canvas = htmlC.getCanvas(); canvas.toTempFilePath({ x: 0, y: 0, width: width, height: height, destWidth: width, destHeight: height, success: function (res) { wx.shareAppMessage({ imageUrl: res.tempFi...

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

40. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 82%]

...显示对象的中心,显示位置在可拖拽区域之内 sp.pivot(sp.width/2,sp.height/2); sp.pos(250,450); Laya.stage.addChild(sp); //为需要滑动的对象添加down,down下开始move,up时移除move和up事件 sp.on(Event.MOUSE_DOWN,this,onDown); Laya.stage.on(Event.MOUSE_UP,this,onUp);...

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